MCPcopy Create free account
hub / github.com/goadesign/goa / Walk

Function Walk

codegen/walk.go:12–14  ·  view source on GitHub ↗

Walk traverses the data structure recursively and calls the given function once on each attribute starting with a.

(a *expr.AttributeExpr, walker func(*expr.AttributeExpr) error)

Source from the content-addressed store, hash-verified

10// Walk traverses the data structure recursively and calls the given function
11// once on each attribute starting with a.
12func Walk(a *expr.AttributeExpr, walker func(*expr.AttributeExpr) error) error {
13 return walk(a, walker, make(map[string]bool))
14}
15
16// WalkType traverses the data structure recursively and calls the given function
17// once on each attribute starting with the user type attribute.

Callers 4

removeMetaFunction · 0.92
transformHelperNameFunction · 0.92
removeMetaFunction · 0.92
hasValidationsFunction · 0.85

Calls 1

walkFunction · 0.70

Tested by

no test coverage detected