method

Fields.Walk

Walk visits nodes in declaration order and crosses only explicit branches.

Arguments

ArgumentTypeDescription
visitfunc(Visit) errorThe visit value.

Returns

The declared result.

error

Full signature

func (fields Fields) Walk(visit func(Visit) error) error

Source field/graph_edit.go:152

Related types

  • Fields

    Fields is the ordered list assigned to ridu.Collection.Fields, ridu.Global.Fields, or a nested field constructor. Populate it with Nodes from this package's constructors. Ridu snapshots the caller-owned slice during construction, editing, and config resolution.

  • Visit

    Visit carries authored structural breadcrumbs; occurrence binding happens later.