aboutsummaryrefslogtreecommitdiff
path: root/src/comp/pretty
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-05-12 13:25:18 +0200
committerMarijn Haverbeke <[email protected]>2011-05-12 15:40:21 +0200
commit358a1aeec99ba6bf3c3f6bc5886e4dddf647a75a (patch)
tree314e23b11b7fed0c6f667dfae66192ffd59566a4 /src/comp/pretty
parentEnsure ann tags are actually kept around during typechecking (diff)
downloadrust-358a1aeec99ba6bf3c3f6bc5886e4dddf647a75a.tar.xz
rust-358a1aeec99ba6bf3c3f6bc5886e4dddf647a75a.zip
Keep resolve data in external hash table, rather than embedded defs
One step closer to removing fold and having a single, immutable AST. Resolve still uses fold, because it has to detect and transform expr_field expressions. If we go through on our plan of moving to a different syntax for module dereferencing, the parser can spit out expr_field expressions, and resolve can move to walk. (I am truly sorry for the things I did in typestate_check.rs. I expect we'll want to change that to walk as well in the near future, at which point it should probably pass around a context record, which could hold the def_map.)
Diffstat (limited to 'src/comp/pretty')
-rw-r--r--src/comp/pretty/pprust.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs
index 3c417eff..d380f0b7 100644
--- a/src/comp/pretty/pprust.rs
+++ b/src/comp/pretty/pprust.rs
@@ -613,7 +613,7 @@ fn print_expr(ps s, &@ast.expr expr) {
print_expr(s, index);
pclose(s);
}
- case (ast.expr_path(?path,_,_)) {
+ case (ast.expr_path(?path,_)) {
print_path(s, path);
}
case (ast.expr_fail(_)) {
@@ -768,7 +768,7 @@ fn print_pat(ps s, &@ast.pat pat) {
case (ast.pat_wild(_)) {wrd(s.s, "_");}
case (ast.pat_bind(?id,_,_)) {wrd(s.s, "?" + id);}
case (ast.pat_lit(?lit,_)) {print_literal(s, lit);}
- case (ast.pat_tag(?path,?args,_,_)) {
+ case (ast.pat_tag(?path,?args,_)) {
print_path(s, path);
if (Vec.len[@ast.pat](args) > 0u) {
popen_h(s);