Module ast_visitor

Source
Expand description

Contains an immutable visitor and an owned folder trait, with default implementations across the entire AST

Re-exports§

pub use fold::Fold;
pub use visit::Visit;
pub use walk::Walk;

Modules§

fold
A folder (implementer of the Fold trait) maps ASTs to ASTs
visit
A visitor (implementer of the Visit trait) walks the immutable AST, mutating itself.
walk
Accepts an AST Visitor. Walks the AST, calling the visitor on each step.