mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Make Loc::new take Positions
This commit is contained in:
parent
1a07508c9a
commit
bd7b1e5013
8 changed files with 54 additions and 56 deletions
|
@ -263,8 +263,8 @@ where
|
|||
|
||||
let runtime_error = RuntimeError::ExposedButNotDefined(symbol);
|
||||
let def = Def {
|
||||
loc_pattern: Loc::new(0, 0, 0, 0, Pattern::Identifier(symbol)),
|
||||
loc_expr: Loc::new(0, 0, 0, 0, Expr::RuntimeError(runtime_error)),
|
||||
loc_pattern: Loc::at(Region::zero(), Pattern::Identifier(symbol)),
|
||||
loc_expr: Loc::at(Region::zero(), Expr::RuntimeError(runtime_error)),
|
||||
expr_var: var_store.fresh(),
|
||||
pattern_vars,
|
||||
annotation: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue