Skip to main content

Module visitor

Module visitor 

Source
Expand description

Visitor pattern for traversing the ForgeScript AST

This module provides a clean way to traverse and analyze the AST without modifying the core parser code.

Structs§

FunctionCollector
Example visitor that collects all function names
NodeCounter
Example visitor that counts node types

Traits§

AstVisitor
Trait for visiting AST nodes
AstVisitorMut
Mutable visitor trait for transforming AST