(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _qdbus
      body: 
        (command.BraceGroup
          children: [
            (C {<local>} {<cur>} {<prev>} {<words>} {<cword>})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<_init_completion>})
                (command.ControlFlow token:<Id.ControlFlow_Return return>)
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.DBracket
                  expr: (bool_expr.Unary op_id:Id.BoolUnary_n child:{($ Id.VSub_DollarName '$cur')})
                )
                (C {<unset>} 
                  {
                    (DQ <'words['> 
                      (word_part.ArithSub
                        anode: 
                          (arith_expr.Binary
                            op_id: Id.Arith_Minus
                            left: 
                              (arith_expr.ArithWord
                                w: 
                                  {
                                    (braced_var_sub
                                      token: <Id.VSub_Name words>
                                      prefix_op: (Id.VSub_Pound)
                                      bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At)
                                    )
                                  }
                              )
                            right: (arith_expr.ArithWord w:{<Id.Lit_Digits 1>})
                          )
                      ) <']'>
                    )
                  }
                )
              ]
            )
            (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 '$('>
                              command_list: 
                                (command.CommandList
                                  children: [
                                    (C {<compgen>} {<-W>} 
                                      {
                                        (SQ <'$( command ${words[@]} 2>/dev/null | \\\n'> 
                                          <'        sed "s/(.*)//" )'>
                                        )
                                      } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                    )
                                  ]
                                )
                            )
                          }
                        ]
                      )
                    }
                  spids: [60]
                )
              ]
            )
          ]
        )
    )
    (C {<complete>} {<-F>} {<_qdbus>} {<qdbus>} {<dcop>})
  ]
)