diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-10 16:47:16 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-10 16:47:16 +0100 |
commit | 0ae2d96a9b9338cfd587775ee9fa7d51944bcffd (patch) | |
tree | 229a2561a2300aa003cda97da37598927d3a3600 /src/shared/cplusplus/CheckExpression.cpp | |
parent | e5eb88a31f435eb1dae0f51f969701339a97a79d (diff) | |
download | qt-creator-0ae2d96a9b9338cfd587775ee9fa7d51944bcffd.tar.gz |
Fixed the AST field names.
Diffstat (limited to 'src/shared/cplusplus/CheckExpression.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckExpression.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/shared/cplusplus/CheckExpression.cpp b/src/shared/cplusplus/CheckExpression.cpp index 0e6fb0dfd6..1c97bc91f1 100644 --- a/src/shared/cplusplus/CheckExpression.cpp +++ b/src/shared/cplusplus/CheckExpression.cpp @@ -119,7 +119,7 @@ bool CheckExpression::visit(CastExpressionAST *ast) bool CheckExpression::visit(ConditionAST *ast) { - FullySpecifiedType typeSpecTy = semantic()->check(ast->type_specifiers, _scope); + FullySpecifiedType typeSpecTy = semantic()->check(ast->type_specifier_list, _scope); Name *name = 0; FullySpecifiedType declTy = semantic()->check(ast->declarator, typeSpecTy.qualifiedType(), _scope, &name); @@ -205,9 +205,9 @@ bool CheckExpression::visit(NewExpressionAST *ast) FullySpecifiedType typeIdTy = semantic()->check(ast->type_id, _scope); if (ast->new_type_id) { - FullySpecifiedType ty = semantic()->check(ast->new_type_id->type_specifier, _scope); + FullySpecifiedType ty = semantic()->check(ast->new_type_id->type_specifier_list, _scope); - for (NewArrayDeclaratorListAST *it = ast->new_type_id->new_array_declarators; it; it = it->next) { + for (NewArrayDeclaratorListAST *it = ast->new_type_id->new_array_declarator_list; it; it = it->next) { if (NewArrayDeclaratorAST *declarator = it->value) { FullySpecifiedType exprTy = semantic()->check(declarator->expression, _scope); } @@ -241,7 +241,7 @@ bool CheckExpression::visit(TypenameCallExpressionAST *ast) bool CheckExpression::visit(TypeConstructorCallAST *ast) { - FullySpecifiedType typeSpecTy = semantic()->check(ast->type_specifier, _scope); + FullySpecifiedType typeSpecTy = semantic()->check(ast->type_specifier_list, _scope); for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { FullySpecifiedType exprTy = semantic()->check(it->value, _scope); } @@ -251,7 +251,7 @@ bool CheckExpression::visit(TypeConstructorCallAST *ast) bool CheckExpression::visit(PostfixExpressionAST *ast) { FullySpecifiedType exprTy = semantic()->check(ast->base_expression, _scope); - for (PostfixListAST *it = ast->postfix_expressions; it; it = it->next) { + for (PostfixListAST *it = ast->postfix_expression_list; it; it = it->next) { accept(it->value); // ### not exactly. } return false; @@ -301,7 +301,7 @@ bool CheckExpression::visit(ThrowExpressionAST *ast) bool CheckExpression::visit(TypeIdAST *ast) { - FullySpecifiedType typeSpecTy = semantic()->check(ast->type_specifier, _scope); + FullySpecifiedType typeSpecTy = semantic()->check(ast->type_specifier_list, _scope); FullySpecifiedType declTy = semantic()->check(ast->declarator, typeSpecTy.qualifiedType(), _scope); _fullySpecifiedType = declTy; |