diff options
| author | Patrick Walton <[email protected]> | 2010-11-24 11:36:35 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-11-24 11:36:35 -0800 |
| commit | 5d72dae1d13fdbe6275d732aac7dd9a9ad604b6f (patch) | |
| tree | c06fdafb3c451ab9771696e70b1bb780a3fcd077 /src/comp/front/ast.rs | |
| parent | rustc: Typecheck whiles and do-whiles. Add a workaround to complex.rs pending... (diff) | |
| download | rust-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.rs | 3 |
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); } |