mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-22 07:58:24 +00:00
prog
This commit is contained in:
parent
e5ea36a25c
commit
40d71d6b83
|
@ -30,13 +30,13 @@ pub fn lower_modules(modules: &[ast::Module]) -> Vec<ir::ModuleBody> {
|
|||
}
|
||||
|
||||
fn lower_module(mut ctx: BuildCtx, module: &ast::Module) -> (BuildCtx, ir::ModuleBody) {
|
||||
let module_id = *ctx.module_name_to_id.get(&module.name.name).unwrap();
|
||||
let mut body = ir::ModuleBody {
|
||||
module_id: ctx.module_id_counter,
|
||||
module_id,
|
||||
functions: Default::default(),
|
||||
modules: Default::default(),
|
||||
span: module.span,
|
||||
};
|
||||
ctx.module_id_counter += 1;
|
||||
|
||||
let mut module_ctx = ModuleCtx {
|
||||
id: body.module_id,
|
||||
|
|
Loading…
Reference in a new issue