Skip to content

Commit a7d837b

Browse files
committed
Stop parsing .() indexes
1 parent 518dc52 commit a7d837b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/comp/syntax/parse/parser.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,13 +1107,6 @@ fn parse_dot_or_call_expr_with(p: &parser, e: @ast::expr) -> @ast::expr {
11071107
p.bump();
11081108
e = mk_expr(p, lo, hi, ast::expr_field(e, p.get_str(i)));
11091109
}
1110-
token::LPAREN. {
1111-
p.bump();
1112-
let ix = parse_expr(p);
1113-
hi = ix.span.hi;
1114-
expect(p, token::RPAREN);
1115-
e = mk_expr(p, lo, hi, ast::expr_index(e, ix));
1116-
}
11171110
t { unexpected(p, t); }
11181111
}
11191112
}

0 commit comments

Comments
 (0)