aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
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);
}