libsyntax: Update view_item_use/import to reflect actual usage

This commit is contained in:
Luqman Aden
2013-02-17 21:45:00 -05:00
parent a6945f2a45
commit 0f09c106f0
11 changed files with 43 additions and 41 deletions

View File

@@ -395,8 +395,8 @@ pub fn id_visitor(vfn: fn@(node_id)) -> visit::vt<()> {
visit_view_item: fn@(vi: @view_item) {
match vi.node {
view_item_use(_, _, id) => vfn(id),
view_item_import(vps) => {
view_item_extern_mod(_, _, id) => vfn(id),
view_item_use(vps) => {
for vec::each(vps) |vp| {
match vp.node {
view_path_simple(_, _, _, id) => vfn(id),