diff options
Diffstat (limited to 'src/comp/pretty')
| -rw-r--r-- | src/comp/pretty/pprust.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs index 28f64c89..7e0fb6cb 100644 --- a/src/comp/pretty/pprust.rs +++ b/src/comp/pretty/pprust.rs @@ -454,9 +454,9 @@ impure fn print_expr(ps s, &@ast.expr expr) { commasep_exprs(s, args); pclose(s); } - case (ast.expr_call_self(?func,?args,_)) { + case (ast.expr_call_self(?ident,?args,_)) { wrd(s.s, "self."); - print_expr(s, func); + print_ident(s, ident); popen(s); commasep_exprs(s, args); pclose(s); @@ -723,6 +723,10 @@ impure fn print_decl(ps s, @ast.decl decl) { end(s.s); } +impure fn print_ident(ps s, ast.ident ident) { + wrd(s.s, ident); +} + impure fn print_for_decl(ps s, @ast.decl decl) { alt (decl.node) { case (ast.decl_local(?loc)) { |