aboutsummaryrefslogtreecommitdiff
path: root/src/comp/pretty
diff options
context:
space:
mode:
authorLindsey Kuper <[email protected]>2011-03-31 11:26:25 -0700
committerGraydon Hoare <[email protected]>2011-03-31 14:16:02 -0700
commitef0c903f6a25cd9d8c900fbde336d4a4a5b43c56 (patch)
tree7401bc79f12a909f271caaed8d29b8913493f4c6 /src/comp/pretty
parentMore machinery for adding an expr_call_self AST node. (diff)
downloadrust-ef0c903f6a25cd9d8c900fbde336d4a4a5b43c56.tar.xz
rust-ef0c903f6a25cd9d8c900fbde336d4a4a5b43c56.zip
More stuff to go with the new expr_call_self AST node
Diffstat (limited to 'src/comp/pretty')
-rw-r--r--src/comp/pretty/pprust.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs
index 0007cfd5..2d17696b 100644
--- a/src/comp/pretty/pprust.rs
+++ b/src/comp/pretty/pprust.rs
@@ -431,6 +431,13 @@ impure fn print_expr(ps s, &@ast.expr expr) {
commasep_exprs(s, args);
pclose(s);
}
+ case (ast.expr_call_self(?func,?args,_)) {
+ wrd(s.s, "self.");
+ print_expr(s, func);
+ popen(s);
+ commasep_exprs(s, args);
+ pclose(s);
+ }
case (ast.expr_bind(?func,?args,_)) {
impure fn print_opt(ps s, &option.t[@ast.expr] expr) {
alt (expr) {