Documentation
¶
Overview ¶
Command genwalker generates walk_generated.go from parsenodes.go.
It scans all struct types in parsenodes.go and node.go, identifies fields whose types are Node (interface), *List, or pointers to other AST structs, and generates the walkChildren function that enumerates child nodes for Walk.
Usage:
go run ./pg/ast/cmd/genwalker
Click to show internal directories.
Click to hide internal directories.