aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-11-30 12:32:20 -0800
committerPatrick Walton <[email protected]>2010-11-30 12:32:20 -0800
commit567a45cc70424b77cac489940a36ff8a6ea97b84 (patch)
treec7c5f0260ca59854fcf81265d612673f7716bdd9 /src/comp/front/ast.rs
parentFinish support for typechecking and translating records. Un-XFAIL rec.rs. (diff)
downloadrust-567a45cc70424b77cac489940a36ff8a6ea97b84.tar.xz
rust-567a45cc70424b77cac489940a36ff8a6ea97b84.zip
rustc: Add def ids to variants
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index a1670c70..25cea29e 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -30,6 +30,7 @@ tag def {
def_const(def_id);
def_arg(def_id);
def_local(def_id);
+ def_variant(def_id);
def_ty(def_id);
def_ty_arg(def_id);
}
@@ -173,7 +174,7 @@ 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 variant = rec(str name, vec[@ty] args, def_id id);
type item = spanned[item_];
tag item_ {