aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorLindsey Kuper <[email protected]>2011-04-07 13:49:27 -0700
committerGraydon Hoare <[email protected]>2011-04-07 14:26:34 -0700
commit1092bbfff0cf932ef14e5b92cd54133571ca4727 (patch)
treea771667972fb8f75d393372032d5f05c03b3b68d /src/comp/front/ast.rs
parentAdd a very basic crate-dump utility (diff)
downloadrust-1092bbfff0cf932ef14e5b92cd54133571ca4727.tar.xz
rust-1092bbfff0cf932ef14e5b92cd54133571ca4727.zip
Support for self-calls that take arguments.
Nicer parsing of self-calls (expr_self_method nodes inside expr_call nodes, rather than a separate expr_call_self) makes typechecking tractable. We can now write self-calls that take arguments and return values (see: test/run-pass/obj-self-*.rs).
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index cf4145a5..4f7a2538 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -258,7 +258,7 @@ tag expr_ {
expr_tup(vec[elt], ann);
expr_rec(vec[field], option.t[@expr], ann);
expr_call(@expr, vec[@expr], ann);
- expr_call_self(ident, vec[@expr], ann);
+ expr_self_method(ident, ann);
expr_bind(@expr, vec[option.t[@expr]], ann);
expr_spawn(spawn_dom, option.t[str], @expr, vec[@expr], ann);
expr_binary(binop, @expr, @expr, ann);