(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _wsimport
      body: 
        (BraceGroup
          children: [
            (C {<local>} {<cur>} {<prev>} {<words>} {<cword>})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<_init_completion>} {<-n>} {<Id.Lit_Colon ':'>})
                (command.ControlFlow token:<Id.ControlFlow_Return return>)
              ]
            )
            (command.Case
              to_match: {($ Id.VSub_DollarName '$prev')}
              arms: [
                (case_arm
                  pat_list: [{<-help>} {<-version>} {<-B>} {<-p>} {<-wsdllocation>}]
                  action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)]
                  spids: [41 50 56 -1]
                )
                (case_arm
                  pat_list: [{<-b>}]
                  action: [
                    (C {<_filedir>} {(SQ <'@(xml|xjb)'>)})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [59 60 73 -1]
                )
                (case_arm
                  pat_list: [{<-catalog>}]
                  action: [
                    (C {<_filedir>} {(SQ <'@(xml|soc|catalog)'>)})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [76 77 90 -1]
                )
                (case_arm
                  pat_list: [{<-d>} {<'–s'>}]
                  action: [
                    (C {<_filedir>} {<-d>})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [93 96 107 -1]
                )
                (case_arm
                  pat_list: [{<-target>}]
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (sh_array_literal
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (command_sub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (C {<compgen>} {<-W>} {(SQ <'2.0 2.1 2.2'>)} {<-->} 
                                          {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [114]
                        )
                      ]
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [110 111 141 -1]
                )
                (case_arm
                  pat_list: [{<-clientjar>}]
                  action: [
                    (C {<_filedir>} {<jar>})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [144 145 156 -1]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {($ Id.VSub_DollarName '$cur')}
                                  right: {<-httpproxy> <Id.Lit_Colon ':'> <Id.Lit_Other '*'>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<_known_hosts_real>} 
                      {
                        (DQ 
                          (braced_var_sub
                            token: <Id.VSub_Name cur>
                            suffix_op: 
                              (suffix_op.Unary
                                tok: <Id.VOp1_Pound '#'>
                                arg_word: {<'-httpproxy:'>}
                              )
                          )
                        )
                      }
                    )
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [163 178]
                )
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {($ Id.VSub_DollarName '$cur')}
                                  right: {<-> <Id.Lit_Other '*'>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:COMPREPLY)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (sh_array_literal
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (command_sub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (C {<compgen>} {<-W>} {(SQ <'$( _parse_help "$1" -help )'>)} 
                                          {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                        )
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [212]
                        )
                      ]
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (command.DBracket
                          expr: 
                            (bool_expr.Binary
                              op_id: Id.BoolBinary_GlobDEqual
                              left: {($ Id.VSub_DollarName '$COMPREPLY')}
                              right: {<Id.Lit_Other '*'> <Id.Lit_Colon ':'>}
                            )
                        )
                        (C {<compopt>} {<-o>} {<nospace>})
                      ]
                    )
                    (C {<__ltrim_colon_completions>} {(DQ ($ Id.VSub_DollarName '$cur'))})
                    (command.ControlFlow token:<Id.ControlFlow_Return return>)
                  ]
                  spids: [195 209]
                )
              ]
            )
            (C {<_filedir>} {<wsdl>})
          ]
        )
    )
    (C {<complete>} {<-F>} {<_wsimport>} {<wsimport>})
  ]
)