mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
cleanup
This commit is contained in:
parent
ee3661ea58
commit
bde76db7bf
1 changed files with 2 additions and 16 deletions
|
@ -442,13 +442,13 @@ fn parse_expr_start<'a>(
|
||||||
loc!(specialize(EExpr::If, if_expr_help(min_indent))),
|
loc!(specialize(EExpr::If, if_expr_help(min_indent))),
|
||||||
loc!(specialize(EExpr::When, when::expr_help(min_indent))),
|
loc!(specialize(EExpr::When, when::expr_help(min_indent))),
|
||||||
loc!(specialize(EExpr::Lambda, closure_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()
|
fail_expr_start_e()
|
||||||
]
|
]
|
||||||
.parse(arena, state)
|
.parse(arena, state)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn foobar<'a>(
|
fn parse_expr_operator_chain<'a>(
|
||||||
min_indent: u16,
|
min_indent: u16,
|
||||||
arena: &'a Bump,
|
arena: &'a Bump,
|
||||||
state: State<'a>,
|
state: State<'a>,
|
||||||
|
@ -484,20 +484,6 @@ struct ExprState<'a> {
|
||||||
end: Position,
|
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<Expr<'a>>, spaces: &'a [CommentOrNewline<'a>] ) {
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
|
|
||||||
impl<'a> ExprState<'a> {
|
impl<'a> ExprState<'a> {
|
||||||
fn consume_spaces(&mut self, arena: &'a Bump) {
|
fn consume_spaces(&mut self, arena: &'a Bump) {
|
||||||
if !self.spaces_after.is_empty() {
|
if !self.spaces_after.is_empty() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue