Module brane_ast::traversals::prune
source · Expand description
Traversal that prunes the AST for compilation.
In particular, inserts return statements into functions such that there if one for every codepath and compiles for-loops to while-statements.
Re-exports§
pub use crate::errors::PruneError as Error;
Functions§
- Prunes the given
brane-dsl
AST for compilation.