mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
only store start position for PrecedenceConflict
This commit is contained in:
parent
d22acb521e
commit
9208000316
4 changed files with 41 additions and 6 deletions
|
@ -519,8 +519,10 @@ fn desugar_bin_op<'a>(arena: &'a Bump, loc_expr: &'a Located<Expr<'_>>) -> &'a L
|
|||
let region = broken_expr.region;
|
||||
let value = Expr::PrecedenceConflict {
|
||||
whole_region: loc_expr.region,
|
||||
binop1: stack_op,
|
||||
binop2: bad_op,
|
||||
binop1_position: stack_op.region.start(),
|
||||
binop1: stack_op.value,
|
||||
binop2_position: bad_op.region.start(),
|
||||
binop2: bad_op.value,
|
||||
expr: arena.alloc(broken_expr),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue