Expand description
Helpers for traversing Control programs
Structs§
- Define traversal order of components: pre-order, post-order, or none.
- A type for accumulating multiple errors
- Option that can be passed to a pass.
Enums§
- Action performed at the end of visiting a control statement.
- The order in which the components are traversed.
- The value returned from parsing an option.
Traits§
- Trait defining method that can be used to construct a Visitor from an ir::Context. This is useful when a pass needs to construct information using the context before visiting the components.
- A pass that implements reporting Diagnostics
- Accumuate the error in a
Result
type into theDiagnosticContext
. - Trait that describes named things. Calling
do_pass
anddo_pass_default
. require this to be implemented. - Describes types that can be visited by things implementing Visitor. This performs a recursive walk of the tree.
- The visiting interface for a
ir::Control
program. Contains two kinds of functions:
Type Aliases§
- Result of performing a visit.