diff options
author | Roberto Raggi <qtc-committer@nokia.com> | 2009-02-09 14:58:13 +0100 |
---|---|---|
committer | Roberto Raggi <qtc-committer@nokia.com> | 2009-02-09 14:58:13 +0100 |
commit | cd9e752ae41c8a1a2475b7bad035fdeaed6b5129 (patch) | |
tree | b123f8e17da33a7f3f724cdc5a906126935eaff9 /src/shared/cplusplus/CheckStatement.cpp | |
parent | 7e5bb9cd36595d6a1236a930f1b3e9779865639d (diff) | |
download | qt-creator-cd9e752ae41c8a1a2475b7bad035fdeaed6b5129.tar.gz |
Introduced ASTVisitor::endVisit(ast node)
Diffstat (limited to 'src/shared/cplusplus/CheckStatement.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckStatement.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/cplusplus/CheckStatement.cpp b/src/shared/cplusplus/CheckStatement.cpp index 67902ff252..4c51bc19bd 100644 --- a/src/shared/cplusplus/CheckStatement.cpp +++ b/src/shared/cplusplus/CheckStatement.cpp @@ -103,6 +103,7 @@ bool CheckStatement::visit(CaseStatementAST *ast) bool CheckStatement::visit(CompoundStatementAST *ast) { Block *block = control()->newBlock(ast->lbrace_token); + ast->symbol = block; _scope->enterSymbol(block); Scope *previousScope = switchScope(block->members()); for (StatementAST *it = ast->statements; it; it = it->next) { @@ -145,6 +146,7 @@ bool CheckStatement::visit(ExpressionStatementAST *ast) bool CheckStatement::visit(ForStatementAST *ast) { Block *block = control()->newBlock(ast->for_token); + ast->symbol = block; _scope->enterSymbol(block); Scope *previousScope = switchScope(block->members()); semantic()->check(ast->initializer, _scope); @@ -158,6 +160,7 @@ bool CheckStatement::visit(ForStatementAST *ast) bool CheckStatement::visit(IfStatementAST *ast) { Block *block = control()->newBlock(ast->if_token); + ast->symbol = block; _scope->enterSymbol(block); Scope *previousScope = switchScope(block->members()); FullySpecifiedType exprTy = semantic()->check(ast->condition, _scope); @@ -197,6 +200,7 @@ bool CheckStatement::visit(ReturnStatementAST *ast) bool CheckStatement::visit(SwitchStatementAST *ast) { Block *block = control()->newBlock(ast->switch_token); + ast->symbol = block; _scope->enterSymbol(block); Scope *previousScope = switchScope(block->members()); FullySpecifiedType condTy = semantic()->check(ast->condition, _scope); @@ -217,6 +221,7 @@ bool CheckStatement::visit(TryBlockStatementAST *ast) bool CheckStatement::visit(CatchClauseAST *ast) { Block *block = control()->newBlock(ast->catch_token); + ast->symbol = block; _scope->enterSymbol(block); Scope *previousScope = switchScope(block->members()); semantic()->check(ast->exception_declaration, _scope); @@ -228,6 +233,7 @@ bool CheckStatement::visit(CatchClauseAST *ast) bool CheckStatement::visit(WhileStatementAST *ast) { Block *block = control()->newBlock(ast->while_token); + ast->symbol = block; _scope->enterSymbol(block); Scope *previousScope = switchScope(block->members()); FullySpecifiedType condTy = semantic()->check(ast->condition, _scope); |