package walk
import "cuelang.org/go/internal/core/walk"
walk provides functions for visiting the nodes of an ADT tree.
Index ¶
Functions ¶
func Features ¶
Features calls f for all features used in x and indicates whether the feature is used as a reference or not.
Types ¶
type Visitor ¶
type Visitor struct { // Feature is invoked for all field names. Feature func(f adt.Feature, src adt.Node) // Before is invoked for all nodes in pre-order traversal. // Returning false prevents the visitor from visiting the node's // children. Before func(adt.Node) bool }
A Visitor walks over all elements in an ADT, recursively.
func (*Visitor) Elem ¶
Source Files ¶
walk.go
- Version
- v0.12.0 (latest)
- Published
- Jan 30, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 8 hours ago –
Tools for package owners.