mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Always combine line,column into Position
This commit is contained in:
parent
f19220473a
commit
4d7070ce3b
22 changed files with 1181 additions and 1293 deletions
|
@ -40,7 +40,7 @@ pub fn defs_to_html<'a>(
|
|||
let mut scope = lang::scope::Scope::new(env.home, env.pool, env.var_store);
|
||||
scope.fill_scope(&env, &mut interns.all_ident_ids)?;
|
||||
|
||||
let region = Region::new(0, 0, 0, 0);
|
||||
let region = Region::zero();
|
||||
|
||||
for def in defs.iter() {
|
||||
write_def_to_bump_str_html(&def_arena, &mut env, &mut scope, region, def, interns, buf)?;
|
||||
|
|
|
@ -37,7 +37,7 @@ pub fn expr_to_html<'a>(
|
|||
);
|
||||
|
||||
let mut scope = lang::scope::Scope::new(env.home, env.pool, env.var_store);
|
||||
let region = Region::new(0, 0, 0, 0);
|
||||
let region = Region::zero();
|
||||
|
||||
// TODO remove unwrap
|
||||
write_expr_to_bump_str_html(&mut env, &mut scope, region, &expr, interns, buf).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue