Index tag and obj items in decl stmts.
This commit is contained in:
parent
a05b9c762a
commit
53d5b11208
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue