function

EachDefinitionChildList

EachDefinitionChildList calls visit with each immediate child field list of field: a group or array's fields and each selectable block definition's fields, as DefinitionChildFields enters them. A shared definition passes the same slice at every placement, so callers can memoize by its first element.

Arguments

ArgumentTypeDescription
fieldFieldThe field value.
visitfunc([]Field)The visit value.

Full signature

Related types

  • Field

    The resolved contract for one field.