diff options
| author | Patrick Walton <[email protected]> | 2010-12-01 10:19:20 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-12-01 10:19:38 -0800 |
| commit | 42282a25c03182a19e80fb1a3294d3869859d6fa (patch) | |
| tree | d1e68961c74eae3f52e5ab937121b62e562166a7 /src/comp/front/ast.rs | |
| parent | Make the ugly detailed leak-spray on rustc failures optional. (diff) | |
| download | rust-42282a25c03182a19e80fb1a3294d3869859d6fa.tar.xz rust-42282a25c03182a19e80fb1a3294d3869859d6fa.zip | |
rustc: Resolve tag variant names
Diffstat (limited to 'src/comp/front/ast.rs')
| -rw-r--r-- | src/comp/front/ast.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index 9b503c71..06e80d7b 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -30,7 +30,7 @@ tag def { def_const(def_id); def_arg(def_id); def_local(def_id); - def_variant(def_id); + def_variant(def_id /* tag */, def_id /* variant */); def_ty(def_id); def_ty_arg(def_id); } @@ -175,8 +175,13 @@ type _fn = rec(vec[arg] inputs, @ty output, block body); +tag mod_index_entry { + mie_item(uint); + mie_tag_variant(uint /* tag item index */, uint /* variant index */); +} + type _mod = rec(vec[@item] items, - hashmap[ident,uint] index); + hashmap[ident,mod_index_entry] index); type variant = rec(str name, vec[@ty] args, def_id id); |