From 05e4d944a9f7db17e759cd4e09fb82357b8cee28 Mon Sep 17 00:00:00 2001 From: Eduard Burtescu Date: Wed, 26 Feb 2014 16:06:45 +0200 Subject: Replace callee_id with information stored in method_map. --- src/libsyntax/parse/parser.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libsyntax/parse') 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], 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]) -> 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 { -- cgit 1.4.1-3-g733a5