mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06: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
|
@ -3,7 +3,7 @@ use crate::ident::Ident;
|
|||
use bumpalo::collections::String;
|
||||
use bumpalo::Bump;
|
||||
use roc_module::operator::{BinOp, CalledVia, UnaryOp};
|
||||
use roc_region::all::{Loc, Region};
|
||||
use roc_region::all::{Loc, Position, Region};
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum Module<'a> {
|
||||
|
@ -157,8 +157,10 @@ pub enum Expr<'a> {
|
|||
// We should tell the author to disambiguate by grouping them with parens.
|
||||
PrecedenceConflict {
|
||||
whole_region: Region,
|
||||
binop1: Loc<BinOp>,
|
||||
binop2: Loc<BinOp>,
|
||||
binop1_position: Position,
|
||||
binop2_position: Position,
|
||||
binop1: BinOp,
|
||||
binop2: BinOp,
|
||||
expr: &'a Loc<Expr<'a>>,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue