aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-11-24 11:36:35 -0800
committerPatrick Walton <[email protected]>2010-11-24 11:36:35 -0800
commit5d72dae1d13fdbe6275d732aac7dd9a9ad604b6f (patch)
treec06fdafb3c451ab9771696e70b1bb780a3fcd077 /src/comp/front/ast.rs
parentrustc: Typecheck whiles and do-whiles. Add a workaround to complex.rs pending... (diff)
downloadrust-5d72dae1d13fdbe6275d732aac7dd9a9ad604b6f.tar.xz
rust-5d72dae1d13fdbe6275d732aac7dd9a9ad604b6f.zip
rustc: Parse tag items. Currently segfaults in copy glue.
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index ddd02a03..2a590d02 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -153,11 +153,14 @@ type _fn = rec(vec[arg] inputs,
type _mod = rec(vec[@item] items,
hashmap[ident,uint] index);
+type variant = rec(str name, vec[@ty] args);
+
type item = spanned[item_];
tag item_ {
item_fn(ident, _fn, def_id, ann);
item_mod(ident, _mod, def_id);
item_ty(ident, @ty, def_id, ann);
+ item_tag(ident, vec[variant], def_id);
}