diff --git a/compiler/parse/src/expr.rs b/compiler/parse/src/expr.rs index 2b7eba9ac3..6d76bdb428 100644 --- a/compiler/parse/src/expr.rs +++ b/compiler/parse/src/expr.rs @@ -442,13 +442,13 @@ fn parse_expr_start<'a>( loc!(specialize(EExpr::If, if_expr_help(min_indent))), loc!(specialize(EExpr::When, when::expr_help(min_indent))), loc!(specialize(EExpr::Lambda, closure_help(min_indent))), - loc!(|a, s| foobar(min_indent, a, s)), + loc!(|a, s| parse_expr_operator_chain(min_indent, a, s)), fail_expr_start_e() ] .parse(arena, state) } -fn foobar<'a>( +fn parse_expr_operator_chain<'a>( min_indent: u16, arena: &'a Bump, state: State<'a>, @@ -484,20 +484,6 @@ struct ExprState<'a> { end: Position, } -// expr_state.expr = if spaces.is_empty() { -// expr_state.expr -// } else { -// arena -// .alloc(expr_state.expr.value) -// .with_spaces_after(spaces, expr_state.expr.region) -// }; - -// fn attach_spaces<'a>(&'a Bump, expr: &mut Located>, spaces: &'a [CommentOrNewline<'a>] ) { -// -// -// -// } - impl<'a> ExprState<'a> { fn consume_spaces(&mut self, arena: &'a Bump) { if !self.spaces_after.is_empty() {