about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2011-06-01 17:47:59 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2011-06-01 17:47:59 -0700
commitaf4554aadf0bb1a883d574c7968eeb4b992bdc1e (patch)
treed78052a15a8598c4c957321bcc2aa7eeb5e8ed37
parentac4ef1741e525632a9c91c3335634b614f4f6945 (diff)
downloadrust-af4554aadf0bb1a883d574c7968eeb4b992bdc1e.tar.gz
rust-af4554aadf0bb1a883d574c7968eeb4b992bdc1e.zip
Add a few more to_str functions
-rw-r--r--src/comp/pretty/pprust.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs
index b18ec1a1dc9..6a957d4553f 100644
--- a/src/comp/pretty/pprust.rs
+++ b/src/comp/pretty/pprust.rs
@@ -72,10 +72,12 @@ fn print_file(session sess, ast::_mod _mod, str filename, io::writer out,
 }
 
 fn ty_to_str(&ast::ty ty) -> str { be to_str(ty, print_type); }
-fn pat_to_str(&@ast::pat ty) -> str { be to_str(ty, print_pat); }
-fn expr_to_str(&@ast::expr ty) -> str { be to_str(ty, print_expr); }
-fn stmt_to_str(&ast::stmt ty) -> str { be to_str(ty, print_stmt); }
-fn item_to_str(&@ast::item ty) -> str { be to_str(ty, print_item); }
+fn pat_to_str(&@ast::pat pat) -> str { be to_str(pat, print_pat); }
+fn expr_to_str(&@ast::expr e) -> str { be to_str(e, print_expr); }
+fn stmt_to_str(&ast::stmt s) -> str { be to_str(s, print_stmt); }
+fn item_to_str(&@ast::item i) -> str { be to_str(i, print_item); }
+fn path_to_str(&ast::path p) -> str { be to_str(p, print_path); }
+fn lit_to_str(&@ast::lit l) -> str { be to_str(l, print_literal); }
 
 fn fun_to_str(&ast::_fn f, str name, vec[ast::ty_param] params) -> str {
     auto writer = io::string_writer();