(command.AndOr
  ops: [Id.Op_DAmp]
  children: [
    (command.ShFunction
      name: _svnlook
      body: 
        (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>)
              ]
            )
            (C {<local>} {<commands>})
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:commands)
                  op: assign_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]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_eq
                                  left: {($ Id.VSub_DollarName '$cword')}
                                  right: {<1>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobDEqual
                                          left: {(DQ ($ 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 <--version>)} {<-->} 
                                                  {(DQ ($ Id.VSub_DollarName '$cur'))}
                                                )
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [86]
                                )
                              ]
                            )
                          ]
                          spids: [67 83]
                        )
                      ]
                      else_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>} 
                                              {(DQ ($ Id.VSub_DollarName '$commands'))} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [113]
                            )
                          ]
                        )
                      ]
                    )
                  ]
                  spids: [50 64]
                )
              ]
              else_action: [
                (C {<local>} 
                  {<Id.Lit_VarLike 'command='> 
                    (braced_var_sub
                      token: <Id.VSub_Name words>
                      bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 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: {(DQ ($ Id.VSub_DollarName '$cur'))}
                                      right: {<-> <Id.Lit_Other '*'>}
                                    )
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      action: [
                        (C {<local>} {<options>})
                        (command.Case
                          to_match: {($ Id.VSub_DollarName '$command')}
                          arms: [
                            (case_arm
                              pat_list: [{<author>} {<cat>} {<date>} {<dirs-changed>} {<info>} {<log>}]
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:options)
                                      op: assign_op.Equal
                                      rhs: {(SQ <'--revision --transaction'>)}
                                      spids: [204]
                                    )
                                  ]
                                )
                              ]
                              spids: [190 201 210 -1]
                            )
                            (case_arm
                              pat_list: [{<changed>}]
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:options)
                                      op: assign_op.Equal
                                      rhs: {(SQ <'--revision --transaction --copy-info'>)}
                                      spids: [217]
                                    )
                                  ]
                                )
                              ]
                              spids: [213 214 223 -1]
                            )
                            (case_arm
                              pat_list: [{<diff>}]
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:options)
                                      op: assign_op.Equal
                                      rhs: 
                                        {
                                          (SQ <'--revision --transaction --no-diff-deleted\n'> 
                                            <
'                             --no-diff-added --diff-copy-from'
                                            >
                                          )
                                        }
                                      spids: [230]
                                    )
                                  ]
                                )
                              ]
                              spids: [226 227 237 -1]
                            )
                            (case_arm
                              pat_list: [{<history>}]
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:options)
                                      op: assign_op.Equal
                                      rhs: {(SQ <'--revision --show-ids'>)}
                                      spids: [244]
                                    )
                                  ]
                                )
                              ]
                              spids: [240 241 250 -1]
                            )
                            (case_arm
                              pat_list: [{<propget>} {<proplist>}]
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:options)
                                      op: assign_op.Equal
                                      rhs: {(SQ <'--revision --transaction --revprop'>)}
                                      spids: [259]
                                    )
                                  ]
                                )
                              ]
                              spids: [253 256 265 -1]
                            )
                            (case_arm
                              pat_list: [{<tree>}]
                              action: [
                                (command.ShAssignment
                                  pairs: [
                                    (assign_pair
                                      lhs: (sh_lhs_expr.Name name:options)
                                      op: assign_op.Equal
                                      rhs: {(SQ <'--revision --transaction --show-ids --full-paths'>)}
                                      spids: [272]
                                    )
                                  ]
                                )
                              ]
                              spids: [268 269 278 -1]
                            )
                          ]
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:options)
                              op: assign_op.PlusEqual
                              rhs: {(DQ <' --help'>)}
                              spids: [285]
                            )
                          ]
                        )
                        (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>} 
                                              {(DQ ($ Id.VSub_DollarName '$options'))} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                            )
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [291]
                            )
                          ]
                        )
                      ]
                      spids: [155 171]
                    )
                  ]
                  else_action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobDEqual
                                          left: {(DQ ($ Id.VSub_DollarName '$command'))}
                                          right: 
                                            {
                                              (word_part.ExtGlob
                                                op: <Id.ExtGlob_At '@('>
                                                arms: [{<help>} {<'[h'> <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>} 
                                                  {(DQ ($ Id.VSub_DollarName '$commands'))} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))}
                                                )
                                            )
                                          }
                                        ]
                                      )
                                    }
                                  spids: [342]
                                )
                              ]
                            )
                          ]
                          spids: [318 339]
                        )
                      ]
                      else_action: [(C {<_filedir>})]
                    )
                  ]
                )
              ]
            )
            (command.ControlFlow token:<Id.ControlFlow_Return return> arg_word:{<0>})
          ]
        )
    )
    (C {<complete>} {<-F>} {<_svnlook>} {<-o>} {<default>} {<svnlook>})
  ]
)