(command.AndOr
  ops: [Op_DAmp]
  children: [
    (command.FuncDef
      name: _svnlook
      body: 
        (command.BraceGroup
          children: [
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cur spids:[20])
                  op: Equal
                  spids: [20]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:prev spids:[22])
                  op: Equal
                  spids: [22]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:words spids:[24])
                  op: Equal
                  spids: [24]
                )
                (assign_pair
                  lhs: (lhs_expr.LhsName name:cword spids:[26])
                  op: Equal
                  spids: [26]
                )
              ]
              spids: [18]
            )
            (command.AndOr
              ops: [Op_DPipe]
              children: [
                (C {(_init_completion)})
                (command.ControlFlow token:<ControlFlow_Return return>)
              ]
            )
            (command.Assignment
              keyword: Assign_Local
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:commands spids:[39])
                  op: Equal
                  spids: [39]
                )
              ]
              spids: [37]
            )
            (command.Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (lhs_expr.LhsName name:commands spids:[42])
                  op: Equal
                  rhs: 
                    {
                      (SQ <'author cat changed date diff dirs-changed help ? h history info\n'> 
                        <
'              lock log propget pget pg proplist plist pl tree uuid youngest'
                        >
                      )
                    }
                  spids: [42]
                )
              ]
              spids: [42]
            )
            (command.If
              arms: [
                (if_arm
                  cond: [
                    (command.Sentence
                      child: 
                        (command.DBracket
                          expr: 
                            (bool_expr.BoolBinary
                              op_id: BoolBinary_eq
                              left: {($ VSub_DollarName '$cword')}
                              right: {(1)}
                            )
                        )
                      terminator: <Op_Semi ';'>
                    )
                  ]
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {(DQ ($ VSub_DollarName '$cur'))}
                                      right: {(-) (Lit_Other '*')}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[86])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.ArrayLiteralPart
                                        words: [
                                          {
                                            (word_part.CommandSubPart
                                              command_list: 
                                                (command.CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} {(SQ <--version>)} {(--)} 
                                                      {(DQ ($ VSub_DollarName '$cur'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [89 105]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [86]
                                )
                              ]
                              spids: [86]
                            )
                          ]
                          spids: [16777215 83]
                        )
                      ]
                      else_action: [
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:COMPREPLY spids:[113])
                              op: Equal
                              rhs: 
                                {
                                  (word_part.ArrayLiteralPart
                                    words: [
                                      {
                                        (word_part.CommandSubPart
                                          command_list: 
                                            (command.CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} 
                                                  {(DQ ($ VSub_DollarName '$commands'))} {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [116 132]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [113]
                            )
                          ]
                          spids: [113]
                        )
                      ]
                      spids: [110 137]
                    )
                  ]
                  spids: [16777215 64]
                )
              ]
              else_action: [
                (command.Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair
                      lhs: (lhs_expr.LhsName name:command spids:[145])
                      op: Equal
                      rhs: 
                        {
                          (word_part.BracedVarSub
                            token: <VSub_Name words>
                            bracket_op: 
                              (bracket_op.ArrayIndex
                                expr: (arith_expr.ArithWord w:{(Lit_Digits 1)})
                              )
                            spids: [146 151]
                          )
                        }
                      spids: [145]
                    )
                  ]
                  spids: [143]
                )
                (command.If
                  arms: [
                    (if_arm
                      cond: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {(DQ ($ VSub_DollarName '$cur'))}
                                  right: {(-) (Lit_Other '*')}
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [
                        (command.Assignment
                          keyword: Assign_Local
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:options spids:[180])
                              op: Equal
                              spids: [180]
                            )
                          ]
                          spids: [178]
                        )
                        (command.Case
                          to_match: {($ VSub_DollarName '$command')}
                          arms: [
                            (case_arm
                              pat_list: [{(author)} {(cat)} {(date)} {(dirs-changed)} {(info)} {(log)}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:options spids:[204])
                                      op: Equal
                                      rhs: {(SQ <'--revision --transaction'>)}
                                      spids: [204]
                                    )
                                  ]
                                  spids: [204]
                                )
                              ]
                              spids: [190 201 210 16777215]
                            )
                            (case_arm
                              pat_list: [{(changed)}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:options spids:[217])
                                      op: Equal
                                      rhs: {(SQ <'--revision --transaction --copy-info'>)}
                                      spids: [217]
                                    )
                                  ]
                                  spids: [217]
                                )
                              ]
                              spids: [213 214 223 16777215]
                            )
                            (case_arm
                              pat_list: [{(diff)}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:options spids:[230])
                                      op: Equal
                                      rhs: 
                                        {
                                          (SQ <'--revision --transaction --no-diff-deleted\n'> 
                                            <
'                             --no-diff-added --diff-copy-from'
                                            >
                                          )
                                        }
                                      spids: [230]
                                    )
                                  ]
                                  spids: [230]
                                )
                              ]
                              spids: [226 227 237 16777215]
                            )
                            (case_arm
                              pat_list: [{(history)}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:options spids:[244])
                                      op: Equal
                                      rhs: {(SQ <'--revision --show-ids'>)}
                                      spids: [244]
                                    )
                                  ]
                                  spids: [244]
                                )
                              ]
                              spids: [240 241 250 16777215]
                            )
                            (case_arm
                              pat_list: [{(propget)} {(proplist)}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:options spids:[259])
                                      op: Equal
                                      rhs: {(SQ <'--revision --transaction --revprop'>)}
                                      spids: [259]
                                    )
                                  ]
                                  spids: [259]
                                )
                              ]
                              spids: [253 256 265 16777215]
                            )
                            (case_arm
                              pat_list: [{(tree)}]
                              action: [
                                (command.Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (lhs_expr.LhsName name:options spids:[272])
                                      op: Equal
                                      rhs: {(SQ <'--revision --transaction --show-ids --full-paths'>)}
                                      spids: [272]
                                    )
                                  ]
                                  spids: [272]
                                )
                              ]
                              spids: [268 269 278 16777215]
                            )
                          ]
                          spids: [183 187 281]
                        )
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:options spids:[285])
                              op: PlusEqual
                              rhs: {(DQ (' --help'))}
                              spids: [285]
                            )
                          ]
                          spids: [285]
                        )
                        (command.Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (lhs_expr.LhsName name:COMPREPLY spids:[291])
                              op: Equal
                              rhs: 
                                {
                                  (word_part.ArrayLiteralPart
                                    words: [
                                      {
                                        (word_part.CommandSubPart
                                          command_list: 
                                            (command.CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} 
                                                  {(DQ ($ VSub_DollarName '$options'))} {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [294 310]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [291]
                            )
                          ]
                          spids: [291]
                        )
                      ]
                      spids: [16777215 171]
                    )
                  ]
                  else_action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  expr: 
                                    (bool_expr.BoolBinary
                                      op_id: BoolBinary_GlobDEqual
                                      left: {(DQ ($ VSub_DollarName '$command'))}
                                      right: 
                                        {
                                          (word_part.ExtGlobPart
                                            op: <ExtGlob_At '@('>
                                            arms: [{(help)} {('[h') (Lit_Other '?') (']')}]
                                            spids: [328 334]
                                          )
                                        }
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (command.Assignment
                              keyword: Assign_None
                              pairs: [
                                (assign_pair
                                  lhs: (lhs_expr.LhsName name:COMPREPLY spids:[342])
                                  op: Equal
                                  rhs: 
                                    {
                                      (word_part.ArrayLiteralPart
                                        words: [
                                          {
                                            (word_part.CommandSubPart
                                              command_list: 
                                                (command.CommandList
                                                  children: [
                                                    (C {(compgen)} {(-W)} 
                                                      {(DQ ($ VSub_DollarName '$commands'))} {(--)} {(DQ ($ VSub_DollarName '$cur'))}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [345 361]
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [342]
                                )
                              ]
                              spids: [342]
                            )
                          ]
                          spids: [16777215 339]
                        )
                      ]
                      else_action: [(C {(_filedir)})]
                      spids: [366 372]
                    )
                  ]
                  spids: [315 375]
                )
              ]
              spids: [140 378]
            )
            (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
          ]
          spids: [15]
        )
      spids: [11 14]
    )
    (C {(complete)} {(-F)} {(_svnlook)} {(-o)} {(default)} {(svnlook)})
  ]
)