diff options
| author | bors <bors@rust-lang.org> | 2014-02-26 07:16:39 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-02-26 07:16:39 -0800 |
| commit | 05a2d32acd7e682854a188697ee404cbd001bf38 (patch) | |
| tree | ad01af5adf976b29f72956c05de0dc395e45412f /src/libsyntax/parse/parser.rs | |
| parent | 6c41f993d390a0a8d9f42cfca4f365b6f93d0c26 (diff) | |
| parent | 05e4d944a9f7db17e759cd4e09fb82357b8cee28 (diff) | |
| download | rust-05a2d32acd7e682854a188697ee404cbd001bf38.tar.gz rust-05a2d32acd7e682854a188697ee404cbd001bf38.zip | |
auto merge of #12571 : eddyb/rust/kill-callee-id, r=nikomatsakis
Every method call and overloaded operator had a `callee_id` that was be used to store the method type and type substitutions, that information is now stored in the `method_map`, alongside the method's origin.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index cbe371a06a5..2fd6d34adf1 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1683,11 +1683,11 @@ impl Parser { } pub fn mk_unary(&mut self, unop: ast::UnOp, expr: @Expr) -> ast::Expr_ { - ExprUnary(ast::DUMMY_NODE_ID, unop, expr) + ExprUnary(unop, expr) } pub fn mk_binary(&mut self, binop: ast::BinOp, lhs: @Expr, rhs: @Expr) -> ast::Expr_ { - ExprBinary(ast::DUMMY_NODE_ID, binop, lhs, rhs) + ExprBinary(binop, lhs, rhs) } pub fn mk_call(&mut self, f: @Expr, args: ~[@Expr]) -> ast::Expr_ { @@ -1695,11 +1695,11 @@ impl Parser { } fn mk_method_call(&mut self, ident: Ident, tps: ~[P<Ty>], args: ~[@Expr]) -> ast::Expr_ { - ExprMethodCall(ast::DUMMY_NODE_ID, ident, tps, args) + ExprMethodCall(ident, tps, args) } pub fn mk_index(&mut self, expr: @Expr, idx: @Expr) -> ast::Expr_ { - ExprIndex(ast::DUMMY_NODE_ID, expr, idx) + ExprIndex(expr, idx) } pub fn mk_field(&mut self, expr: @Expr, ident: Ident, tys: ~[P<Ty>]) -> ast::Expr_ { @@ -1707,7 +1707,7 @@ impl Parser { } pub fn mk_assign_op(&mut self, binop: ast::BinOp, lhs: @Expr, rhs: @Expr) -> ast::Expr_ { - ExprAssignOp(ast::DUMMY_NODE_ID, binop, lhs, rhs) + ExprAssignOp(binop, lhs, rhs) } pub fn mk_mac_expr(&mut self, lo: BytePos, hi: BytePos, m: Mac_) -> @Expr { |
