summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/CheckStatement.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 16:47:16 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-11-10 16:47:16 +0100
commit0ae2d96a9b9338cfd587775ee9fa7d51944bcffd (patch)
tree229a2561a2300aa003cda97da37598927d3a3600 /src/shared/cplusplus/CheckStatement.cpp
parente5eb88a31f435eb1dae0f51f969701339a97a79d (diff)
downloadqt-creator-0ae2d96a9b9338cfd587775ee9fa7d51944bcffd.tar.gz
Fixed the AST field names.
Diffstat (limited to 'src/shared/cplusplus/CheckStatement.cpp')
-rw-r--r--src/shared/cplusplus/CheckStatement.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shared/cplusplus/CheckStatement.cpp b/src/shared/cplusplus/CheckStatement.cpp
index f63aa9270b..1273f81610 100644
--- a/src/shared/cplusplus/CheckStatement.cpp
+++ b/src/shared/cplusplus/CheckStatement.cpp
@@ -104,7 +104,7 @@ bool CheckStatement::visit(CompoundStatementAST *ast)
ast->symbol = block;
_scope->enterSymbol(block);
Scope *previousScope = switchScope(block->members());
- for (StatementListAST *it = ast->statements; it; it = it->next) {
+ for (StatementListAST *it = ast->statement_list; it; it = it->next) {
semantic()->check(it->value, _scope);
}
(void) switchScope(previousScope);
@@ -149,8 +149,8 @@ bool CheckStatement::visit(ForeachStatementAST *ast)
ast->symbol = block;
_scope->enterSymbol(block);
Scope *previousScope = switchScope(block->members());
- if (ast->type_specifiers && ast->declarator) {
- FullySpecifiedType ty = semantic()->check(ast->type_specifiers, _scope);
+ if (ast->type_specifier_list && ast->declarator) {
+ FullySpecifiedType ty = semantic()->check(ast->type_specifier_list, _scope);
Name *name = 0;
ty = semantic()->check(ast->declarator, ty, _scope, &name);
unsigned location = ast->declarator->firstToken();
@@ -178,8 +178,8 @@ bool CheckStatement::visit(ObjCFastEnumerationAST *ast)
ast->symbol = block;
_scope->enterSymbol(block);
Scope *previousScope = switchScope(block->members());
- if (ast->type_specifiers && ast->declarator) {
- FullySpecifiedType ty = semantic()->check(ast->type_specifiers, _scope);
+ if (ast->type_specifier_list && ast->declarator) {
+ FullySpecifiedType ty = semantic()->check(ast->type_specifier_list, _scope);
Name *name = 0;
ty = semantic()->check(ast->declarator, ty, _scope, &name);
unsigned location = ast->declarator->firstToken();