Skip to content

Commit 53d5b11

Browse files
committed
Index tag and obj items in decl stmts.
1 parent a05b9c7 commit 53d5b11

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/comp/front/parser.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,12 @@ fn index_block(vec[@ast.stmt] stmts, option.t[@ast.expr] expr) -> ast.block_ {
11031103
case (ast.item_ty(?i, _, _, _, _)) {
11041104
index.insert(i, u-1u);
11051105
}
1106+
case (ast.item_tag(?i, _, _, _)) {
1107+
index.insert(i, u-1u);
1108+
}
1109+
case (ast.item_obj(?i, _, _, _, _)) {
1110+
index.insert(i, u-1u);
1111+
}
11061112
}
11071113
}
11081114
}

0 commit comments

Comments
 (0)