function

WalkDefinitionFields

WalkDefinitionFields calls visit for each field reachable from the roots through DefinitionChildFields, in pre-order. Each shared definition's fields are visited once, however often the definition is placed, so the walk is proportional to definitions. It stops and returns false when visit does.

Arguments

ArgumentTypeDescription
visitfunc(Field) boolThe visit value.
roots[][]FieldThe roots value.

Returns

The declared result.

bool

Full signature

func WalkDefinitionFields( visit func(Field) bool, roots ...[]Field, ) bool

Source schema/embedded.go:106

Related types

  • Field

    The resolved contract for one field.