(command.CommandList
  children: [
    (command.ShFunction
      name_tok: <_ri_get_methods>
      name: _ri_get_methods
      body: 
        (BraceGroup
          left: <Id.Lit_LBrace '{'>
          children: [
            (command.Simple
              blame_tok: <local>
              more_env: []
              words: [{<local>} {<regex>}]
              redirects: []
              do_fork: T
            )
            (command.If
              if_kw: <Id.KW_If if>
              arms: [
                (IfArm
                  keyword: <Id.KW_If if>
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              left: <Id.KW_DLeftBracket '[['>
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {($ Id.VSub_DollarName ri_version)}
                                  right: {<integrated>}
                                )
                              right: <Id.Lit_DRightBracket ']]'>
                              redirects: []
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  then_kw: <Id.KW_Then then>
                  action: [
                    (command.If
                      if_kw: <Id.KW_If if>
                      arms: [
                        (IfArm
                          keyword: <Id.KW_If if>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      left: <Id.KW_DLeftBracket '[['>
                                      expr: 
                                        (bool_expr.Unary
                                          op_id: Id.BoolUnary_z
                                          child: {($ Id.VSub_DollarName separator)}
                                        )
                                      right: <Id.Lit_DRightBracket ']]'>
                                      redirects: []
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'regex='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'regex='>
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'regex='> name:regex)
                                  op: assign_op.Equal
                                  rhs: {(DQ <'(Instance|Class)'>)}
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [36 47]
                        )
                        (IfArm
                          keyword: <Id.KW_Elif elif>
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      left: <Id.KW_DLeftBracket '[['>
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobDEqual
                                          left: {($ Id.VSub_DollarName separator)}
                                          right: {(DQ <'#'>)}
                                        )
                                      right: <Id.Lit_DRightBracket ']]'>
                                      redirects: []
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          then_kw: <Id.KW_Then then>
                          action: [
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'regex='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'regex='>
                                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'regex='> name:regex)
                                  op: assign_op.Equal
                                  rhs: {<Instance>}
                                )
                              ]
                              redirects: []
                            )
                          ]
                          spids: [56 71]
                        )
                      ]
                      else_kw: <Id.KW_Else else>
                      else_action: [
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'regex='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'regex='>
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'regex='> name:regex)
                              op: assign_op.Equal
                              rhs: {<Class>}
                            )
                          ]
                          redirects: []
                        )
                      ]
                      fi_kw: <Id.KW_Fi fi>
                      redirects: []
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'COMPREPLY+='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'COMPREPLY+='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'COMPREPLY+='> name:COMPREPLY)
                          op: assign_op.PlusEqual
                          rhs: 
                            {
                              (ShArrayLiteral
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (DQ 
                                      (CommandSub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (command.Pipeline
                                            children: [
                                              (command.Simple
                                                blame_tok: <ri>
                                                more_env: []
                                                words: [
                                                  {<ri>}
                                                  {
                                                    (BracedVarSub
                                                      left: <Id.Left_DollarBrace '${'>
                                                      token: <Id.VSub_Name classes>
                                                      var_name: classes
                                                      bracket_op: 
                                                        (bracket_op.WholeArray
                                                          op_id: Id.Lit_At
                                                        )
                                                      right: <Id.Right_DollarBrace '}'>
                                                    )
                                                  }
                                                ]
                                                redirects: [
                                                  (Redir
                                                    op: <Id.Redir_Great '2>'>
                                                    loc: (redir_loc.Fd fd:2)
                                                    arg: {<'/dev/null'>}
                                                  )
                                                ]
                                                do_fork: T
                                              )
                                              (command.Simple
                                                blame_tok: <ruby>
                                                more_env: []
                                                words: [
                                                  {<ruby>}
                                                  {<-ane>}
                                                  {(SQ <'if /^'>) (DQ ($ Id.VSub_DollarName regex)) 
                                                    (SQ 
                                                      <
' methods:/.../^------------------|^$/ and \\\n'
                                                      > <'            /^ / then print $_.split(/, |,$/).grep(/^[^\\[]*$/).join("\\n"); \\\n'> 
                                                      <'            end'>
                                                    )
                                                  }
                                                ]
                                                redirects: [
                                                  (Redir
                                                    op: <Id.Redir_Great '2>'>
                                                    loc: (redir_loc.Fd fd:2)
                                                    arg: {<'/dev/null'>}
                                                  )
                                                ]
                                                do_fork: T
                                              )
                                              (command.Simple
                                                blame_tok: <sort>
                                                more_env: []
                                                words: [{<sort>} {<-u>}]
                                                redirects: []
                                                do_fork: T
                                              )
                                            ]
                                            ops: [<Id.Op_Pipe _> <Id.Op_Pipe _>]
                                          )
                                        right: <Id.Eof_RParen _>
                                      )
                                    )
                                  }
                                ]
                                right: <Id.Right_ShArrayLiteral _>
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                  ]
                  spids: [20 33]
                )
              ]
              else_kw: <Id.KW_Else else>
              else_action: [
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'COMPREPLY+='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'COMPREPLY+='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'COMPREPLY+='> name:COMPREPLY)
                      op: assign_op.PlusEqual
                      rhs: 
                        {
                          (ShArrayLiteral
                            left: <Id.Op_LParen _>
                            words: [
                              {
                                (DQ 
                                  (CommandSub
                                    left_token: <Id.Left_DollarParen '$('>
                                    child: 
                                      (command.Pipeline
                                        children: [
                                          (command.Simple
                                            blame_tok: <ruby>
                                            more_env: []
                                            words: [
                                              {<ruby>}
                                              {<-W0>}
                                              {($ Id.VSub_DollarName ri_path)}
                                              {
                                                (BracedVarSub
                                                  left: <Id.Left_DollarBrace '${'>
                                                  token: <Id.VSub_Name classes>
                                                  var_name: classes
                                                  bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At)
                                                  right: <Id.Right_DollarBrace '}'>
                                                )
                                              }
                                            ]
                                            redirects: []
                                            do_fork: T
                                          )
                                          (command.Simple
                                            blame_tok: <ruby>
                                            more_env: []
                                            words: [
                                              {<ruby>}
                                              {<-ane>}
                                              {
                                                (SQ 
                                                  <
'if /^-/.../^-/ and ! /^-/ and ! /^ +(class|module): / then \\\n'
                                                  > <'            print $_.split(/, |,$| +/).grep(/^[^\\[]*$/).join("\\n"); \\\n'> <'            end'>
                                                )
                                              }
                                            ]
                                            redirects: []
                                            do_fork: T
                                          )
                                          (command.Simple
                                            blame_tok: <sort>
                                            more_env: []
                                            words: [{<sort>} {<-u>}]
                                            redirects: []
                                            do_fork: T
                                          )
                                        ]
                                        ops: [<Id.Op_Pipe _> <Id.Op_Pipe _>]
                                      )
                                    right: <Id.Eof_RParen _>
                                  )
                                )
                              }
                            ]
                            right: <Id.Right_ShArrayLiteral _>
                          )
                        }
                    )
                  ]
                  redirects: []
                )
              ]
              fi_kw: <Id.KW_Fi fi>
              redirects: []
            )
            (command.ShAssignment
              left: <Id.Lit_VarLike 'COMPREPLY='>
              pairs: [
                (AssignPair
                  left: <Id.Lit_VarLike 'COMPREPLY='>
                  lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'COMPREPLY='> name:COMPREPLY)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (ShArrayLiteral
                        left: <Id.Op_LParen _>
                        words: [
                          {
                            (CommandSub
                              left_token: <Id.Left_DollarParen '$('>
                              child: 
                                (command.Simple
                                  blame_tok: <compgen>
                                  more_env: []
                                  words: [
                                    {<compgen>}
                                    {($ Id.VSub_DollarName prefix)}
                                    {<-W>}
                                    {(SQ <'${COMPREPLY[@]}'>)}
                                    {<-->}
                                    {($ Id.VSub_DollarName method)}
                                  ]
                                  redirects: []
                                  do_fork: T
                                )
                              right: <Id.Eof_RParen _>
                            )
                          }
                        ]
                        right: <Id.Right_ShArrayLiteral _>
                      )
                    }
                )
              ]
              redirects: []
            )
          ]
          redirects: []
          right: <Id.Lit_RBrace '}'>
        )
    )
    (command.AndOr
      children: [
        (command.ShFunction
          name_tok: <_ri>
          name: _ri
          body: 
            (BraceGroup
              left: <Id.Lit_LBrace '{'>
              children: [
                (command.Simple
                  blame_tok: <local>
                  more_env: []
                  words: [{<local>} {<cur>} {<prev>} {<words>} {<cword>}]
                  redirects: []
                  do_fork: T
                )
                (command.AndOr
                  children: [
                    (command.Simple
                      blame_tok: <_init_completion>
                      more_env: []
                      words: [{<_init_completion>} {<-n>} {<Id.Lit_Colon ':'>}]
                      redirects: []
                      do_fork: T
                    )
                    (command.ControlFlow keyword:<Id.ControlFlow_Return return>)
                  ]
                  ops: [<Id.Op_DPipe _>]
                )
                (command.Simple
                  blame_tok: <local>
                  more_env: []
                  words: [
                    {<local>}
                    {<Id.KW_Class class>}
                    {<method>}
                    {<prefix>}
                    {<ri_path>}
                    {<ri_version>}
                    {<ri_major>}
                    {<separator>}
                    {<IFS>}
                  ]
                  redirects: []
                  do_fork: T
                )
                (command.Simple
                  blame_tok: <local>
                  more_env: []
                  words: [{<local>} {<-a>} {<classes>}]
                  redirects: []
                  do_fork: T
                )
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'ri_path='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'ri_path='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ri_path='> name:ri_path)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (CommandSub
                            left_token: <Id.Left_DollarParen '$('>
                            child: 
                              (command.Simple
                                blame_tok: <type>
                                more_env: []
                                words: [{<type>} {<-p>} {<ri>}]
                                redirects: []
                                do_fork: T
                              )
                            right: <Id.Eof_RParen _>
                          )
                        }
                    )
                  ]
                  redirects: []
                )
                (command.AndOr
                  children: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'ri_version='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'ri_version='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ri_version='> name:ri_version)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (DQ 
                                (CommandSub
                                  left_token: <Id.Left_DollarParen '$('>
                                  child: 
                                    (command.Simple
                                      blame_tok: <ruby>
                                      more_env: []
                                      words: [{<ruby>} {<-W0>} {($ Id.VSub_DollarName ri_path)} {<-v>}]
                                      redirects: [
                                        (Redir
                                          op: <Id.Redir_GreatAnd '2>&'>
                                          loc: (redir_loc.Fd fd:2)
                                          arg: {<1>}
                                        )
                                      ]
                                      do_fork: T
                                    )
                                  right: <Id.Eof_RParen _>
                                )
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'ri_version='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'ri_version='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ri_version='> name:ri_version)
                          op: assign_op.Equal
                          rhs: {<integrated>}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  ops: [<Id.Op_DPipe _>]
                )
                (command.AndOr
                  children: [
                    (command.DBracket
                      left: <Id.KW_DLeftBracket '[['>
                      expr: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_GlobNEqual
                          left: {($ Id.VSub_DollarName ri_version)}
                          right: 
                            {
                              (BracedVarSub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Name ri_version>
                                var_name: ri_version
                                suffix_op: 
                                  (suffix_op.Unary
                                    op: <Id.VOp1_Percent '%'>
                                    arg_word: {<200> <Id.Lit_Other '*'>}
                                  )
                                right: <Id.Right_DollarBrace '}'>
                              )
                            }
                        )
                      right: <Id.Lit_DRightBracket ']]'>
                      redirects: []
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'ri_version='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'ri_version='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ri_version='> name:ri_version)
                          op: assign_op.Equal
                          rhs: {<integrated>}
                        )
                      ]
                      redirects: []
                    )
                  ]
                  ops: [<Id.Op_DAmp _>]
                )
                (command.AndOr
                  children: [
                    (command.DBracket
                      left: <Id.KW_DLeftBracket '[['>
                      expr: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_EqualTilde
                          left: {($ Id.VSub_DollarName ri_version)}
                          right: 
                            {<ri> <Id.Lit_Other '['> <Id.Lit_Other '['> <Id.Lit_Other ':'> <space> 
                              <Id.Lit_Other ':'> <Id.Lit_Other ']'> <Id.Lit_Other ']'> <v> <Id.Lit_Other '?'> <Id.Lit_Other '('> <Id.Lit_Other '['> <0-9> 
                              <Id.Lit_Other ']'> <Id.Lit_Other '+'> <Id.Lit_Other ')'>
                            }
                        )
                      right: <Id.Lit_DRightBracket ']]'>
                      redirects: []
                    )
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'ri_major='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'ri_major='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ri_major='> name:ri_major)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (BracedVarSub
                                left: <Id.Left_DollarBrace '${'>
                                token: <Id.VSub_Name BASH_REMATCH>
                                var_name: BASH_REMATCH
                                bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 1>})
                                right: <Id.Right_DollarBrace '}'>
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                  ]
                  ops: [<Id.Op_DAmp _>]
                )
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'IFS='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'IFS='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'IFS='> name:IFS)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (SingleQuoted
                            left: <Id.Left_DollarSingleQuote '$\''>
                            tokens: [
                              <Id.Char_Literals ', '>
                              <Id.Char_OneChar '\\n'>
                              <Id.Char_OneChar '\\t'>
                            ]
                            right: <Id.Right_SingleQuote '\''>
                          )
                        }
                    )
                  ]
                  redirects: []
                )
                (command.If
                  if_kw: <Id.KW_If if>
                  arms: [
                    (IfArm
                      keyword: <Id.KW_If if>
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  left: <Id.KW_DLeftBracket '[['>
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_GlobDEqual
                                      left: {(DQ ($ Id.VSub_DollarName cur))}
                                      right: 
                                        {<Id.Lit_Other '['> <A-Z> <Id.Lit_Other ']'> <Id.Lit_Other '*'> 
                                          <Id.Lit_Other '['> <Id.Lit_Pound '#'> <.> <Id.Lit_Other ']'> <Id.Lit_Other '*'>
                                        }
                                    )
                                  right: <Id.Lit_DRightBracket ']]'>
                                  redirects: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      then_kw: <Id.KW_Then then>
                      action: [
                        (command.AndOr
                          children: [
                            (command.DBracket
                              left: <Id.KW_DLeftBracket '[['>
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: {(DQ ($ Id.VSub_DollarName cur))}
                                  right: {<Id.Lit_Other '*'> <Id.Lit_Pound '#'> <Id.Lit_Other '*'>}
                                )
                              right: <Id.Lit_DRightBracket ']]'>
                              redirects: []
                            )
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'separator='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'separator='>
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'separator='>
                                      name: separator
                                    )
                                  op: assign_op.Equal
                                  rhs: {<Id.Lit_Pound '#'>}
                                )
                              ]
                              redirects: []
                            )
                            (command.ShAssignment
                              left: <Id.Lit_VarLike 'separator='>
                              pairs: [
                                (AssignPair
                                  left: <Id.Lit_VarLike 'separator='>
                                  lhs: 
                                    (sh_lhs_expr.Name
                                      left: <Id.Lit_VarLike 'separator='>
                                      name: separator
                                    )
                                  op: assign_op.Equal
                                  rhs: {<.>}
                                )
                              ]
                              redirects: []
                            )
                          ]
                          ops: [<Id.Op_DAmp _> <Id.Op_DPipe _>]
                        )
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'class='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'class='>
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'class='> name:class)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (BracedVarSub
                                    left: <Id.Left_DollarBrace '${'>
                                    token: <Id.VSub_Name cur>
                                    var_name: cur
                                    suffix_op: 
                                      (suffix_op.Unary
                                        op: <Id.VOp1_Percent '%'>
                                        arg_word: 
                                          {($ Id.VSub_DollarName separator) <Id.Lit_Other '*'>}
                                      )
                                    right: <Id.Right_DollarBrace '}'>
                                  )
                                }
                            )
                          ]
                          redirects: []
                        )
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'method='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'method='>
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'method='> name:method)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (BracedVarSub
                                    left: <Id.Left_DollarBrace '${'>
                                    token: <Id.VSub_Name cur>
                                    var_name: cur
                                    suffix_op: 
                                      (suffix_op.Unary
                                        op: <Id.VOp1_Pound '#'>
                                        arg_word: 
                                          {<Id.Lit_Other '*'> ($ Id.VSub_DollarName separator)}
                                      )
                                    right: <Id.Right_DollarBrace '}'>
                                  )
                                }
                            )
                          ]
                          redirects: []
                        )
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'classes='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'classes='>
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'classes='> name:classes)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (ShArrayLiteral
                                    left: <Id.Op_LParen _>
                                    words: [{($ Id.VSub_DollarName class)}]
                                    right: <Id.Right_ShArrayLiteral _>
                                  )
                                }
                            )
                          ]
                          redirects: []
                        )
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'prefix='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'prefix='>
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'prefix='> name:prefix)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (DQ <'-P '> ($ Id.VSub_DollarName class) 
                                    ($ Id.VSub_DollarName separator)
                                  )
                                }
                            )
                          ]
                          redirects: []
                        )
                        (command.Simple
                          blame_tok: <_ri_get_methods>
                          more_env: []
                          words: [{<_ri_get_methods>}]
                          redirects: []
                          do_fork: T
                        )
                        (command.ControlFlow
                          keyword: <Id.ControlFlow_Return return>
                          arg_word: {<0>}
                        )
                      ]
                      spids: [405 428]
                    )
                  ]
                  else_action: []
                  fi_kw: <Id.KW_Fi fi>
                  redirects: []
                )
                (command.If
                  if_kw: <Id.KW_If if>
                  arms: [
                    (IfArm
                      keyword: <Id.KW_If if>
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  left: <Id.KW_DLeftBracket '[['>
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_GlobDEqual
                                      left: {($ Id.VSub_DollarName ri_version)}
                                      right: {<integrated>}
                                    )
                                  right: <Id.Lit_DRightBracket ']]'>
                                  redirects: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      then_kw: <Id.KW_Then then>
                      action: [
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'classes='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'classes='>
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'classes='> name:classes)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (ShArrayLiteral
                                    left: <Id.Op_LParen _>
                                    words: [
                                      {
                                        (CommandSub
                                          left_token: <Id.Left_DollarParen '$('>
                                          child: 
                                            (command.Pipeline
                                              children: [
                                                (command.Simple
                                                  blame_tok: <ri>
                                                  more_env: []
                                                  words: [{<ri>} {<-c>}]
                                                  redirects: [
                                                    (Redir
                                                      op: <Id.Redir_Great '2>'>
                                                      loc: (redir_loc.Fd fd:2)
                                                      arg: {<'/dev/null'>}
                                                    )
                                                  ]
                                                  do_fork: T
                                                )
                                                (command.Simple
                                                  blame_tok: <ruby>
                                                  more_env: []
                                                  words: [
                                                    {<ruby>}
                                                    {<-ne>}
                                                    {
                                                      (SQ <'if /^\\s*$/..$stdin.eof then \\\n'> 
                                                        <
'        if /, [A-Z]+/ then print; end; end'
                                                        >
                                                      )
                                                    }
                                                  ]
                                                  redirects: [
                                                    (Redir
                                                      op: <Id.Redir_Great '2>'>
                                                      loc: (redir_loc.Fd fd:2)
                                                      arg: {<'/dev/null'>}
                                                    )
                                                  ]
                                                  do_fork: T
                                                )
                                              ]
                                              ops: [<Id.Op_Pipe _>]
                                            )
                                          right: <Id.Eof_RParen _>
                                        )
                                      }
                                    ]
                                    right: <Id.Right_ShArrayLiteral _>
                                  )
                                }
                            )
                          ]
                          redirects: []
                        )
                      ]
                      spids: [506 519]
                    )
                    (IfArm
                      keyword: <Id.KW_Elif elif>
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  left: <Id.KW_DLeftBracket '[['>
                                  expr: 
                                    (bool_expr.LogicalAnd
                                      left: (bool_expr.WordTest w:{($ Id.VSub_DollarName ri_major)})
                                      right: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_ge
                                          left: {($ Id.VSub_DollarName ri_major)}
                                          right: {<3>}
                                        )
                                    )
                                  right: <Id.Lit_DRightBracket ']]'>
                                  redirects: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      then_kw: <Id.KW_Then then>
                      action: [
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'classes='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'classes='>
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'classes='> name:classes)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (ShArrayLiteral
                                    left: <Id.Op_LParen _>
                                    words: [
                                      {
                                        (CommandSub
                                          left_token: <Id.Left_DollarParen '$('>
                                          child: 
                                            (command.Simple
                                              blame_tok: <ri>
                                              more_env: []
                                              words: [{<ri>} {<-l>}]
                                              redirects: [
                                                (Redir
                                                  op: <Id.Redir_Great '2>'>
                                                  loc: (redir_loc.Fd fd:2)
                                                  arg: {<'/dev/null'>}
                                                )
                                              ]
                                              do_fork: T
                                            )
                                          right: <Id.Eof_RParen _>
                                        )
                                      }
                                    ]
                                    right: <Id.Right_ShArrayLiteral _>
                                  )
                                }
                            )
                          ]
                          redirects: []
                        )
                      ]
                      spids: [557 574]
                    )
                    (IfArm
                      keyword: <Id.KW_Elif elif>
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  left: <Id.KW_DLeftBracket '[['>
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_GlobDEqual
                                      left: {($ Id.VSub_DollarName ri_version)}
                                      right: {(DQ <'ri 1.8a'>)}
                                    )
                                  right: <Id.Lit_DRightBracket ']]'>
                                  redirects: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      then_kw: <Id.KW_Then then>
                      action: [
                        (command.ShAssignment
                          left: <Id.Lit_VarLike 'classes='>
                          pairs: [
                            (AssignPair
                              left: <Id.Lit_VarLike 'classes='>
                              lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'classes='> name:classes)
                              op: assign_op.Equal
                              rhs: 
                                {
                                  (ShArrayLiteral
                                    left: <Id.Op_LParen _>
                                    words: [
                                      {
                                        (CommandSub
                                          left_token: <Id.Left_DollarParen '$('>
                                          child: 
                                            (command.Pipeline
                                              children: [
                                                (command.Simple
                                                  blame_tok: <ruby>
                                                  more_env: []
                                                  words: [
                                                    {<ruby>}
                                                    {<-W0>}
                                                    {($ Id.VSub_DollarName ri_path)}
                                                  ]
                                                  redirects: []
                                                  do_fork: T
                                                )
                                                (command.Simple
                                                  blame_tok: <ruby>
                                                  more_env: []
                                                  words: [
                                                    {<ruby>}
                                                    {<-ne>}
                                                    {(SQ <'if /^'>) (DQ <'\''>) (SQ <ri>) (DQ <'\''>) 
                                                      (SQ <' has/..$stdin.eof then \\\n'> 
                                                        <
'            if /^ .*[A-Z]/ then print; end; end'
                                                        >
                                                      )
                                                    }
                                                  ]
                                                  redirects: []
                                                  do_fork: T
                                                )
                                              ]
                                              ops: [<Id.Op_Pipe _>]
                                            )
                                          right: <Id.Eof_RParen _>
                                        )
                                      }
                                    ]
                                    right: <Id.Right_ShArrayLiteral _>
                                  )
                                }
                            )
                          ]
                          redirects: []
                        )
                      ]
                      spids: [594 609]
                    )
                  ]
                  else_kw: <Id.KW_Else else>
                  else_action: [
                    (command.ShAssignment
                      left: <Id.Lit_VarLike 'classes='>
                      pairs: [
                        (AssignPair
                          left: <Id.Lit_VarLike 'classes='>
                          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'classes='> name:classes)
                          op: assign_op.Equal
                          rhs: 
                            {
                              (ShArrayLiteral
                                left: <Id.Op_LParen _>
                                words: [
                                  {
                                    (CommandSub
                                      left_token: <Id.Left_DollarParen '$('>
                                      child: 
                                        (command.Pipeline
                                          children: [
                                            (command.Simple
                                              blame_tok: <ruby>
                                              more_env: []
                                              words: [{<ruby>} {<-W0>} {($ Id.VSub_DollarName ri_path)}]
                                              redirects: []
                                              do_fork: T
                                            )
                                            (command.Simple
                                              blame_tok: <ruby>
                                              more_env: []
                                              words: [
                                                {<ruby>}
                                                {<-ne>}
                                                {
                                                  (SQ <'if /^I have/..$stdin.eof then \\\n'> 
                                                    <
'                if /^ .*[A-Z]/ then print; end; end'
                                                    >
                                                  )
                                                }
                                              ]
                                              redirects: []
                                              do_fork: T
                                            )
                                          ]
                                          ops: [<Id.Op_Pipe _>]
                                        )
                                      right: <Id.Eof_RParen _>
                                    )
                                  }
                                ]
                                right: <Id.Right_ShArrayLiteral _>
                              )
                            }
                        )
                      ]
                      redirects: []
                    )
                  ]
                  fi_kw: <Id.KW_Fi fi>
                  redirects: []
                )
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'COMPREPLY='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'COMPREPLY='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'COMPREPLY='> name:COMPREPLY)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (ShArrayLiteral
                            left: <Id.Op_LParen _>
                            words: [
                              {
                                (CommandSub
                                  left_token: <Id.Left_DollarParen '$('>
                                  child: 
                                    (command.Simple
                                      blame_tok: <compgen>
                                      more_env: []
                                      words: [
                                        {<compgen>}
                                        {<-W>}
                                        {(SQ <'${classes[@]}'>)}
                                        {<-->}
                                        {(DQ ($ Id.VSub_DollarName cur))}
                                      ]
                                      redirects: []
                                      do_fork: T
                                    )
                                  right: <Id.Eof_RParen _>
                                )
                              }
                            ]
                            right: <Id.Right_ShArrayLiteral _>
                          )
                        }
                    )
                  ]
                  redirects: []
                )
                (command.Simple
                  blame_tok: <__ltrim_colon_completions>
                  more_env: []
                  words: [{<__ltrim_colon_completions>} {(DQ ($ Id.VSub_DollarName cur))}]
                  redirects: []
                  do_fork: T
                )
                (command.If
                  if_kw: <Id.KW_If if>
                  arms: [
                    (IfArm
                      keyword: <Id.KW_If if>
                      cond: 
                        (condition.Shell
                          commands: [
                            (command.Sentence
                              child: 
                                (command.DBracket
                                  left: <Id.KW_DLeftBracket '[['>
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_GlobDEqual
                                      left: {(DQ ($ Id.VSub_DollarName cur))}
                                      right: 
                                        {<Id.Lit_Other '['> <A-Z> <Id.Lit_Other ']'> <Id.Lit_Other '*'>}
                                    )
                                  right: <Id.Lit_DRightBracket ']]'>
                                  redirects: []
                                )
                              terminator: <Id.Op_Semi _>
                            )
                          ]
                        )
                      then_kw: <Id.KW_Then then>
                      action: [
                        (command.ControlFlow
                          keyword: <Id.ControlFlow_Return return>
                          arg_word: {<0>}
                        )
                      ]
                      spids: [719 737]
                    )
                  ]
                  else_action: []
                  fi_kw: <Id.KW_Fi fi>
                  redirects: []
                )
                (command.ShAssignment
                  left: <Id.Lit_VarLike 'method='>
                  pairs: [
                    (AssignPair
                      left: <Id.Lit_VarLike 'method='>
                      lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'method='> name:method)
                      op: assign_op.Equal
                      rhs: {($ Id.VSub_DollarName cur)}
                    )
                  ]
                  redirects: []
                )
                (command.Simple
                  blame_tok: <_ri_get_methods>
                  more_env: []
                  words: [{<_ri_get_methods>}]
                  redirects: []
                  do_fork: T
                )
              ]
              redirects: []
              right: <Id.Lit_RBrace '}'>
            )
        )
        (command.Simple
          blame_tok: <complete>
          more_env: []
          words: [{<complete>} {<-F>} {<_ri>} {<ri>}]
          redirects: []
          do_fork: T
        )
      ]
      ops: [<Id.Op_DAmp _>]
    )
  ]
)