Expand description
This module provides infrastructure for the visitor pattern over the AirScript AST
Implementations of VisitMut need only provide implementations of trait functions for
the specific AST nodes which they are interested in, or which provide important context.
By default, with no trait functions overridden, a visitor will simply traverse the AST
top-down. When you override one of the trait functions, it is up to the implementation to
drive the visitor down to children of the corresponding node type, if desired. For that purpose,
this module exposes a number of visit_mut_* functions which can be called to perform the
default visitor traversal for that node.
Traits§
- Visit
Mut - This trait represents a mutable visitor over the AST.
Functions§
- visit_
mut_ access_ type - visit_
mut_ binary_ expr - visit_
mut_ bounded_ symbol_ access - visit_
mut_ bus - visit_
mut_ bus_ operation - visit_
mut_ call - visit_
mut_ const_ symbol_ access - visit_
mut_ constant - visit_
mut_ evaluator_ function - visit_
mut_ evaluator_ trace_ binding - visit_
mut_ evaluator_ trace_ segment - visit_
mut_ expr - visit_
mut_ function - visit_
mut_ identifier - visit_
mut_ import - visit_
mut_ let - visit_
mut_ list_ comprehension - visit_
mut_ module - visit_
mut_ periodic_ column - visit_
mut_ public_ input - visit_
mut_ range_ bound - visit_
mut_ resolvable_ identifier - visit_
mut_ scalar_ expr - visit_
mut_ statement - visit_
mut_ statement_ block - visit_
mut_ symbol_ access - visit_
mut_ trace_ binding - visit_
mut_ trace_ segment - visit_
mut_ typed_ identifier