type

Visit

Visit carries authored structural breadcrumbs; occurrence binding happens later.

Properties

PropertyTypeDescription
NodeNodeThe Node value.
Branches[]BranchSelectorThe Branches value.
IndexintThe Index value.
Path[]stringPath is the stored schema placement, including block slugs and embedded branches.
DefinitionSlugstringDefinitionSlug identifies the nearest shared definition, if any.

Full signature

type Visit struct { Node Node Branches []BranchSelector Index int // Path is the stored schema placement, including block slugs and embedded branches. Path []string // DefinitionSlug identifies the nearest shared definition, if any. DefinitionSlug string }

Source field/graph_edit.go:141