Stop parsing .() indexes
This commit is contained in:
parent
518dc52f85
commit
a7d837be74
1 changed files with 0 additions and 7 deletions
|
@ -1107,13 +1107,6 @@ fn parse_dot_or_call_expr_with(p: &parser, e: @ast::expr) -> @ast::expr {
|
|||
p.bump();
|
||||
e = mk_expr(p, lo, hi, ast::expr_field(e, p.get_str(i)));
|
||||
}
|
||||
token::LPAREN. {
|
||||
p.bump();
|
||||
let ix = parse_expr(p);
|
||||
hi = ix.span.hi;
|
||||
expect(p, token::RPAREN);
|
||||
e = mk_expr(p, lo, hi, ast::expr_index(e, ix));
|
||||
}
|
||||
t { unexpected(p, t); }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue