MCPcopy Index your code
hub / github.com/maruel/panicparse / walk

Method walk

stack/stack.go:300–309  ·  view source on GitHub ↗

walk traverses all non-aggregate arguments in the Args struct, calling the provided visitor function with each Arg.

(visitor func(arg *Arg))

Source from the content-addressed store, hash-verified

298// walk traverses all non-aggregate arguments in the Args struct, calling the
299// provided visitor function with each Arg.
300func (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.
312type Location int

Callers 2

augmentCallFunction · 0.80
nameArgumentsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected