aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/parser.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-12-31 14:18:19 -0800
committerGraydon Hoare <[email protected]>2010-12-31 14:18:19 -0800
commit53d5b112080f2908acf01bba418fdf3568f490f7 (patch)
tree47d34b7fead688c2602cbf3ed64f61c55a60f401 /src/comp/front/parser.rs
parentUn-XFAIL obj-recursion.rs for rustc. (diff)
downloadrust-53d5b112080f2908acf01bba418fdf3568f490f7.tar.xz
rust-53d5b112080f2908acf01bba418fdf3568f490f7.zip
Index tag and obj items in decl stmts.
Diffstat (limited to 'src/comp/front/parser.rs')
-rw-r--r--src/comp/front/parser.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs
index 0e08a8bf..844bd97f 100644
--- a/src/comp/front/parser.rs
+++ b/src/comp/front/parser.rs
@@ -1103,6 +1103,12 @@ fn index_block(vec[@ast.stmt] stmts, option.t[@ast.expr] expr) -> ast.block_ {
case (ast.item_ty(?i, _, _, _, _)) {
index.insert(i, u-1u);
}
+ case (ast.item_tag(?i, _, _, _)) {
+ index.insert(i, u-1u);
+ }
+ case (ast.item_obj(?i, _, _, _, _)) {
+ index.insert(i, u-1u);
+ }
}
}
}