Speed up the comutation of the local members.

This commit is contained in:
Roberto Raggi
2010-08-06 11:29:41 +02:00
parent 517d4f630d
commit 463f83630f
5 changed files with 154 additions and 180 deletions

View File

@@ -392,6 +392,14 @@ Scope *CheckSymbols::enclosingScope() const
if (foreachStmt->symbol)
return foreachStmt->symbol->members();
} else if (SwitchStatementAST *switchStmt = ast->asSwitchStatement()) {
if (switchStmt->symbol)
return switchStmt->symbol->members();
} else if (CatchClauseAST *catchClause = ast->asCatchClause()) {
if (catchClause->symbol)
return catchClause->symbol->members();
}
}