aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2010-12-10 18:08:32 -0800
committerPatrick Walton <[email protected]>2010-12-10 18:08:32 -0800
commitde118d79b603b84e2911527a586f7716b750c5fa (patch)
tree5ade03edc398491cd5a70a449fabf21832b46ab4 /src/comp/front/ast.rs
parentrustc: Add update_env_for_arm to fold; we'll need it to resolve pattern bindings (diff)
downloadrust-de118d79b603b84e2911527a586f7716b750c5fa.tar.xz
rust-de118d79b603b84e2911527a586f7716b750c5fa.zip
rustc: Resolve pattern bindings
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 71065150..11db3eed 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -33,6 +33,7 @@ tag def {
def_variant(def_id /* tag */, def_id /* variant */);
def_ty(def_id);
def_ty_arg(def_id);
+ def_binding(def_id);
}
type crate = spanned[crate_];
@@ -124,7 +125,7 @@ tag decl_ {
decl_item(@item);
}
-type arm = rec(@pat pat, block block);
+type arm = rec(@pat pat, block block, hashmap[ident,def_id] index);
type elt = rec(mutability mut, @expr expr);
type field = rec(mutability mut, ident ident, @expr expr);