Function brane_ast::traversals::flatten::pass_stmt
source · pub fn pass_stmt(
stmt: &mut Stmt,
table: &mut TableState,
errors: &mut Vec<Error>,
)
Expand description
Passes a Stmt, collecting any definitions it makes into the given CompileState, effectively flattening its own symbol tables.
§Arguments
stmt
: The Stmt to traverse.table
: The TableState to define everything in.errors
: A list of errors that may be collected during traversal.
§Returns
Nothing, but does change contents of symbol tables.
§Errors
This function may error in the (statistically improbable) event that two intermediate result identifiers collide.