aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-15 16:30:43 -0700
committerPatrick Walton <[email protected]>2011-03-15 16:30:43 -0700
commit7d32f3d052b46f09bfd21effd801eebeab4204b3 (patch)
treed6c7cf9282192058382f8c09b3595fd07f9f5dd5 /src/comp/front/ast.rs
parentrustc: Typo: "unput" -> "input" (diff)
downloadrust-7d32f3d052b46f09bfd21effd801eebeab4204b3.tar.xz
rust-7d32f3d052b46f09bfd21effd801eebeab4204b3.zip
rustc: Add a stub crate reader module for "use" directives
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index a7ff64fa..3de72406 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -21,6 +21,7 @@ type ty_param = rec(ident ident, def_id id);
// Annotations added during successive passes.
tag ann {
ann_none;
+ ann_crate(@external_crate_info);
ann_type(@middle.ty.t, option.t[vec[@middle.ty.t]] /* ty param substs */);
}
@@ -370,6 +371,9 @@ tag native_item_ {
native_item_fn(ident, fn_decl, vec[ty_param], def_id, ann);
}
+// TODO: Actually store something here.
+type external_crate_info = ();
+
fn index_view_item(mod_index index, @view_item it) {
alt (it.node) {
case(ast.view_item_use(?id, _, _)) {