Skip to main content

lower_top_level

Function lower_top_level 

Source
pub fn lower_top_level(ast: &Ast, interner: &mut SymbolInterner) -> LoweredFile
Expand description

Lower every top-level AstDecl in ast to an IR Declaration.

interner is mutated so the produced Declaration::names are re-resolvable through the same symbol table the rest of the engine uses.