mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
wip
This commit is contained in:
parent
a0d39ff10f
commit
e595c14fae
6 changed files with 213 additions and 54 deletions
|
@ -178,12 +178,13 @@ pub fn canonicalize_expr<'a>(
|
|||
|
||||
let (expr, output) = match expr {
|
||||
ast::Expr::Num(string) => {
|
||||
let answer = num_expr_from_result(var_store, finish_parsing_int(*string), env);
|
||||
let answer = num_expr_from_result(var_store, finish_parsing_int(*string), region, env);
|
||||
|
||||
(answer, Output::default())
|
||||
}
|
||||
ast::Expr::Float(string) => {
|
||||
let answer = float_expr_from_result(var_store, finish_parsing_float(string), env);
|
||||
let answer =
|
||||
float_expr_from_result(var_store, finish_parsing_float(string), region, env);
|
||||
|
||||
(answer, Output::default())
|
||||
}
|
||||
|
@ -630,7 +631,7 @@ pub fn canonicalize_expr<'a>(
|
|||
result = result.map(i64::neg);
|
||||
}
|
||||
|
||||
let answer = int_expr_from_result(var_store, result, env);
|
||||
let answer = int_expr_from_result(var_store, result, region, env);
|
||||
|
||||
(answer, Output::default())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue