From ef0c903f6a25cd9d8c900fbde336d4a4a5b43c56 Mon Sep 17 00:00:00 2001 From: Lindsey Kuper Date: Thu, 31 Mar 2011 11:26:25 -0700 Subject: More stuff to go with the new expr_call_self AST node --- src/comp/pretty/pprust.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/comp/pretty') 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) { -- cgit v1.2.3