diff options
| author | Graydon Hoare <[email protected]> | 2010-12-31 14:18:19 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-12-31 14:18:19 -0800 |
| commit | 53d5b112080f2908acf01bba418fdf3568f490f7 (patch) | |
| tree | 47d34b7fead688c2602cbf3ed64f61c55a60f401 /src/comp/front | |
| parent | Un-XFAIL obj-recursion.rs for rustc. (diff) | |
| download | rust-53d5b112080f2908acf01bba418fdf3568f490f7.tar.xz rust-53d5b112080f2908acf01bba418fdf3568f490f7.zip | |
Index tag and obj items in decl stmts.
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/parser.rs | 6 |
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); + } } } } |