walk traverses all non-aggregate arguments in the Args struct, calling the provided visitor function with each Arg.
(visitor func(arg *Arg))
| 298 | // walk traverses all non-aggregate arguments in the Args struct, calling the |
| 299 | // provided visitor function with each Arg. |
| 300 | func (a *Args) walk(visitor func(arg *Arg)) { |
| 301 | for i := range a.Values { |
| 302 | arg := &a.Values[i] |
| 303 | if arg.IsAggregate { |
| 304 | arg.Fields.walk(visitor) |
| 305 | } else { |
| 306 | visitor(arg) |
| 307 | } |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | // Location is the source location, if determined. |
| 312 | type Location int |
no outgoing calls
no test coverage detected