mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Code gen toplevel module functions
This commit is contained in:
parent
1a2367c8aa
commit
ee31eac0c5
7 changed files with 183 additions and 141 deletions
|
@ -90,16 +90,17 @@ mod test_reporting {
|
|||
let pointer_size = std::mem::size_of::<u64>() as u32;
|
||||
|
||||
// Populate Procs and Subs, and get the low-level Expr from the canonical Expr
|
||||
let _mono_expr = Expr::new(
|
||||
&arena,
|
||||
&mut subs,
|
||||
&mut mono_problems,
|
||||
loc_expr.value,
|
||||
&mut procs,
|
||||
let mut mono_env = roc_mono::expr::Env {
|
||||
arena: &arena,
|
||||
subs: &mut subs,
|
||||
problems: &mut mono_problems,
|
||||
home,
|
||||
&mut ident_ids,
|
||||
ident_ids: &mut ident_ids,
|
||||
pointer_size,
|
||||
);
|
||||
symbol_counter: 0,
|
||||
jump_counter: arena.alloc(0),
|
||||
};
|
||||
let _mono_expr = Expr::new(&mut mono_env, loc_expr.value, &mut procs);
|
||||
}
|
||||
|
||||
Ok((unify_problems, can_problems, mono_problems, home, interns))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue