Function brane_ast::traversals::print::ast_unresolved::do_traversal
source · pub fn do_traversal(
state: &CompileState,
root: UnresolvedWorkflow,
writer: impl Write,
) -> Result<UnresolvedWorkflow, Vec<Error>>
Expand description
Starts printing the root of the AST (i.e., an UnresolvedWorkflow).
§Arguments
writer
: TheWrite
r to write to.state
: The TableState that we use to resolve definition references.root
: The root node of the tree on which this compiler pass will be done.
§Returns
The same root node as went in (since this compiler pass performs no transformations on the tree).
§Errors
This pass doesn’t really error, but is here for convention purposes.