aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle/walk.rs
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/middle/walk.rs
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/middle/walk.rs')
-rw-r--r--src/comp/middle/walk.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/walk.rs b/src/comp/middle/walk.rs
index c8f5f432..e684924a 100644
--- a/src/comp/middle/walk.rs
+++ b/src/comp/middle/walk.rs
@@ -372,7 +372,7 @@ fn walk_expr(&ast_visitor v, @ast.expr e) {
walk_expr(v, a);
walk_expr(v, b);
}
- case (ast.expr_path(_, _, _)) { }
+ case (ast.expr_path(_, _)) { }
case (ast.expr_ext(_, ?args, ?body, ?expansion, _)) {
// Only walk expansion, not args/body.
walk_expr(v, expansion);