(CommandList
  children: [
    (AndOr
      children: [
        (DBracket
          expr: 
            (BoolBinary
              op_id: BoolBinary_GlobDEqual
              left: {($ VSub_Name '$OSTYPE')}
              right: {(Lit_Other '*') (freebsd) (Lit_Other '*')}
            )
        )
        (ControlFlow token:<ControlFlow_Return return> arg_word:{(1)})
      ]
      op_id: Op_DPipe
    )
    (AndOr
      children: [
        (FuncDef
          name: _pkg_delete
          body: 
            (BraceGroup
              children: [
                (Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair lhs:(LhsName name:cur) op:Equal spids:[32])
                    (assign_pair lhs:(LhsName name:prev) op:Equal spids:[34])
                    (assign_pair lhs:(LhsName name:words) op:Equal spids:[36])
                    (assign_pair lhs:(LhsName name:cword) op:Equal spids:[38])
                  ]
                  spids: [30]
                )
                (AndOr
                  children: [(C {(_init_completion)}) (ControlFlow token:<ControlFlow_Return return>)]
                  op_id: Op_DPipe
                )
                (Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:pkgdir)
                      op: Equal
                      rhs: 
                        {
                          (BracedVarSub
                            token: <VSub_Name PKG_DBDIR>
                            suffix_op: 
                              (StringUnary
                                op_id: VTest_ColonHyphen
                                arg_word: {(Lit_Slash /) (var) (Lit_Slash /) (db) (Lit_Slash /) (pkg)}
                              )
                            spids: [52 61]
                          ) (/)
                        }
                      spids: [51]
                    )
                  ]
                  spids: [49]
                )
                (AndOr
                  children: [
                    (DBracket
                      expr: 
                        (LogicalOr
                          left: 
                            (BoolBinary
                              op_id: BoolBinary_GlobDEqual
                              left: {(DQ ($ VSub_Name '$prev'))}
                              right: {(BoolUnary_o -o)}
                            )
                          right: 
                            (LogicalOr
                              left: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {(DQ ($ VSub_Name '$prev'))}
                                  right: {(BoolUnary_p -p)}
                                )
                              right: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {(DQ ($ VSub_Name '$prev'))}
                                  right: {(-W)}
                                )
                            )
                        )
                    )
                    (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
                  ]
                  op_id: Op_DAmp
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:COMPREPLY)
                      op: Equal
                      rhs: 
                        {
                          (ArrayLiteralPart
                            words: [
                              {
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C {(compgen)} {(-d)} {(--)} 
                                          {(DQ ($ VSub_Name '$pkgdir') ($ VSub_Name '$cur'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [109 122]
                                )
                              }
                            ]
                          )
                        }
                      spids: [106]
                    )
                  ]
                  spids: [106]
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:COMPREPLY)
                      op: Equal
                      rhs: 
                        {
                          (ArrayLiteralPart
                            words: [
                              {
                                (BracedVarSub
                                  token: <VSub_Name COMPREPLY>
                                  bracket_op: (WholeArray op_id:Lit_At)
                                  suffix_op: 
                                    (StringUnary
                                      op_id: VOp1_Pound
                                      arg_word: {($ VSub_Name '$pkgdir')}
                                    )
                                  spids: [130 137]
                                )
                              }
                            ]
                          )
                        }
                      spids: [127]
                    )
                  ]
                  spids: [127]
                )
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
              ]
              spids: [27]
            )
          spids: [23 26]
        )
        (C {(complete)} {(-F)} {(_pkg_delete)} {(-o)} {(dirnames)} {(pkg_delete)} {(pkg_info)} 
          {(pkg_deinstall)}
        )
      ]
      op_id: Op_DAmp
    )
  ]
)