From 358a1aeec99ba6bf3c3f6bc5886e4dddf647a75a Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 12 May 2011 13:25:18 +0200 Subject: 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.) --- src/comp/middle/walk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/comp/middle/walk.rs') 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); -- cgit v1.2.3