Generic traversal helpers for RustQ AST nodes.
Traversal is driven by RustQ AST node structs, so passes do not need to hand-maintain structural recursion every time a node gains a field.
Summary
Functions
Returns true when term is one of RustQ's schema-backed AST nodes.
Walks an AST tree in post-order, applying fun after children are visited.
Walks an AST tree in pre-order, applying fun before children are visited.
Reduces an AST tree in pre-order.
Types
@type ast_node() :: struct()
Functions
Returns true when term is one of RustQ's schema-backed AST nodes.
Walks an AST tree in post-order, applying fun after children are visited.
Walks an AST tree in pre-order, applying fun before children are visited.
Reduces an AST tree in pre-order.