Parameters traverses the list of parameters
(p ASTPass, l *ast.Fodder, params *[]ast.Parameter, r *ast.Fodder, ctx Context)
| 103 | |
| 104 | // Parameters traverses the list of parameters |
| 105 | func (*Base) Parameters(p ASTPass, l *ast.Fodder, params *[]ast.Parameter, r *ast.Fodder, ctx Context) { |
| 106 | p.Fodder(p, l, ctx) |
| 107 | for i := range *params { |
| 108 | param := &(*params)[i] |
| 109 | p.Fodder(p, ¶m.NameFodder, ctx) |
| 110 | if param.DefaultArg != nil { |
| 111 | p.Fodder(p, ¶m.EqFodder, ctx) |
| 112 | p.Visit(p, ¶m.DefaultArg, ctx) |
| 113 | } |
| 114 | p.Fodder(p, ¶m.CommaFodder, ctx) |
| 115 | } |
| 116 | p.Fodder(p, r, ctx) |
| 117 | } |
| 118 | |
| 119 | // Arguments traverses the list of arguments |
| 120 | func (*Base) Arguments(p ASTPass, l *ast.Fodder, args *ast.Arguments, r *ast.Fodder, ctx Context) { |