Function brane_ast::traversals::prune::do_traversal

source ·
pub fn do_traversal(root: Program) -> Result<Program, Vec<AstError>>
Expand description

Prunes the given brane-dsl AST for compilation.

Note that the previous traversals should all already have come to pass.

§Arguments

  • root: The root node of the tree on which this compiler pass will be done.

§Returns

The same nodes as went in, but now ready for compilation.

§Errors

This pass may throw multiple AstError::PruneErrorss if the locations could not be satisactorily deduced.