(AndOr
  ops: [Op_DAmp]
  children: [
    (FuncDef
      name: _alias
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair lhs:(LhsName name:cur) op:Equal spids:[13])
                (assign_pair lhs:(LhsName name:prev) op:Equal spids:[15])
                (assign_pair lhs:(LhsName name:words) op:Equal spids:[17])
                (assign_pair lhs:(LhsName name:cword) op:Equal spids:[19])
              ]
              spids: [11]
            )
            (AndOr
              ops: [Op_DPipe]
              children: [(C {(_init_completion)}) (ControlFlow token:<ControlFlow_Return return>)]
            )
            (Case
              to_match: 
                {
                  (BracedVarSub
                    token: <VSub_Name words>
                    bracket_op: (WholeArray op_id:Lit_At)
                    spids: [32 37]
                  )
                }
              arms: [
                (case_arm
                  pat_list: [
                    {(Lit_Other '*') (Lit_Other '[') (Lit_Other '^') (Lit_Other '=') (Lit_Other ']')}
                  ]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:COMPREPLY)
                          op: Equal
                          rhs: 
                            {
                              (ArrayLiteralPart
                                words: [
                                  {
                                    (CommandSubPart
                                      command_list: 
                                        (CommandList
                                          children: [
                                            (C {(compgen)} {(-A)} {(alias)} {(--)} 
                                              {(DQ ($ VSub_Name '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [53 67]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [50]
                        )
                      ]
                      spids: [50]
                    )
                  ]
                  spids: [42 47 72 16777215]
                )
                (case_arm
                  pat_list: [{(Lit_Other '*') (Lit_Other '=')}]
                  action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:COMPREPLY)
                          op: Equal
                          rhs: 
                            {
                              (ArrayLiteralPart
                                words: [
                                  {
                                    (DQ 
                                      (CommandSubPart
                                        command_list: 
                                          (CommandList
                                            children: [
                                              (Pipeline
                                                children: [
                                                  (SimpleCommand
                                                    words: [
                                                      {(alias)}
                                                      {
                                                        (BracedVarSub
                                                          token: <VSub_Name cur>
                                                          suffix_op: 
                                                            (StringUnary
                                                              op_id: VOp1_Percent
                                                              arg_word: {('=')}
                                                            )
                                                          spids: [88 92]
                                                        )
                                                      }
                                                    ]
                                                    redirects: [
                                                      (Redir
                                                        op: <Redir_Great '2>'>
                                                        fd: 2
                                                        arg_word: {(/dev/null)}
                                                      )
                                                    ]
                                                  )
                                                  (C {(sed)} {(-e)} 
                                                    {(SQ <'s|^alias '>) (DQ ($ VSub_Name '$cur')) 
                                                      (SQ <'\\(.*\\)$|\\1|'>)
                                                    }
                                                  )
                                                ]
                                                negated: F
                                              )
                                            ]
                                          )
                                        left_token: <Left_CommandSub '$('>
                                        spids: [84 115]
                                      )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [80]
                        )
                      ]
                      spids: [80]
                    )
                  ]
                  spids: [75 77 121 16777215]
                )
              ]
              spids: [30 39 124]
            )
          ]
          spids: [8]
        )
      spids: [4 7]
    )
    (C {(complete)} {(-F)} {(_alias)} {(-o)} {(nospace)} {(alias)})
  ]
)