genwalker

command
v0.0.0-...-be4b795 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL