diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2014-02-26 16:06:45 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2014-02-26 16:06:45 +0200 |
| commit | 05e4d944a9f7db17e759cd4e09fb82357b8cee28 (patch) | |
| tree | ad01af5adf976b29f72956c05de0dc395e45412f /src/libsyntax/ext | |
| parent | 7a588ceff2143198f33a62d27b8cd735cb2b9b82 (diff) | |
| download | rust-05e4d944a9f7db17e759cd4e09fb82357b8cee28.tar.gz rust-05e4d944a9f7db17e759cd4e09fb82357b8cee28.zip | |
Replace callee_id with information stored in method_map.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/build.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 33cdf4d9add..1ddd579a2f1 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -502,15 +502,14 @@ impl<'a> AstBuilder for ExtCtxt<'a> { fn expr_binary(&self, sp: Span, op: ast::BinOp, lhs: @ast::Expr, rhs: @ast::Expr) -> @ast::Expr { - self.expr(sp, ast::ExprBinary(ast::DUMMY_NODE_ID, op, lhs, rhs)) + self.expr(sp, ast::ExprBinary(op, lhs, rhs)) } fn expr_deref(&self, sp: Span, e: @ast::Expr) -> @ast::Expr { self.expr_unary(sp, ast::UnDeref, e) } - fn expr_unary(&self, sp: Span, op: ast::UnOp, e: @ast::Expr) - -> @ast::Expr { - self.expr(sp, ast::ExprUnary(ast::DUMMY_NODE_ID, op, e)) + fn expr_unary(&self, sp: Span, op: ast::UnOp, e: @ast::Expr) -> @ast::Expr { + self.expr(sp, ast::ExprUnary(op, e)) } fn expr_managed(&self, sp: Span, e: @ast::Expr) -> @ast::Expr { @@ -543,7 +542,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { ident: ast::Ident, mut args: ~[@ast::Expr]) -> @ast::Expr { args.unshift(expr); - self.expr(span, ast::ExprMethodCall(ast::DUMMY_NODE_ID, ident, ~[], args)) + self.expr(span, ast::ExprMethodCall(ident, ~[], args)) } fn expr_block(&self, b: P<ast::Block>) -> @ast::Expr { self.expr(b.span, ast::ExprBlock(b)) |
