Track the path as we fold over the AST looking for unit tests. Issue #428

This commit is contained in:
Brian Anderson 2011-07-08 20:52:54 -07:00
parent 9af59f9d81
commit 5543404abe
3 changed files with 21 additions and 4 deletions

View file

@ -20,7 +20,9 @@ type path_ = rec(ident[] idents, (@ty)[] types);
type path = spanned[path_];
fn path_name(&path p) -> str { ret str::connect_ivec(p.node.idents, "::"); }
fn path_name(&path p) -> str { path_name_i(p.node.idents) }
fn path_name_i(&ident[] idents) -> str { str::connect_ivec(idents, "::") }
type crate_num = int;
type node_id = int;

View file

@ -12,6 +12,7 @@ export default_ast_fold;
export make_fold;
export dummy_out;
export noop_fold_crate;
export noop_fold_item;
type ast_fold = @mutable a_f;