aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-01-04 15:07:38 -0800
committerGraydon Hoare <[email protected]>2011-01-04 15:07:38 -0800
commit2ec0b724c46073d57973e076e222b047e36fee9d (patch)
treec59e8d97328e8b19885ef9db232cc57efd3a2de5 /src/comp/front/ast.rs
parentrustc: Add an item type accessor (diff)
parentAdd names from imports to the namespace. (diff)
downloadrust-2ec0b724c46073d57973e076e222b047e36fee9d.tar.xz
rust-2ec0b724c46073d57973e076e222b047e36fee9d.zip
Merge remote branch 'espindola/import'
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index 15c0e499..fff7b24c 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -36,6 +36,7 @@ tag def {
def_ty_arg(def_id);
def_binding(def_id);
def_use(def_id);
+ def_import(def_id);
}
type crate = spanned[crate_];
@@ -213,7 +214,7 @@ type _obj = rec(vec[obj_field] fields,
tag mod_index_entry {
- mie_use(uint);
+ mie_view_item(uint);
mie_item(uint);
mie_tag_variant(uint /* tag item index */, uint /* variant index */);
}