Function brane_ast::traversals::print::symbol_tables::do_traversal
source · pub fn do_traversal(
root: Program,
writer: impl Write,
) -> Result<Program, Vec<Error>>
Expand description
Starts printing the root of the AST (i.e., a series of statements).
§Arguments
root
: The root node of the tree on which this compiler pass will be done.writer
: TheWrite
r to write to.
§Returns
The same root node as went in (since this compiler pass performs no transformations on the tree).
§Errors
This pass generally doesn’t error, but is here for convention purposes.