diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-10 11:13:57 +0100 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-11-10 16:20:09 +0100 |
commit | 4089c906fa0fb2988e73c23d8eeb5a15d8b8629f (patch) | |
tree | 2cc2b2f71367c3ff755082141647915538a773f7 /src/shared/cplusplus/CheckExpression.cpp | |
parent | 9e7ff0469b134d4ab4224fa3134beffae8ddf656 (diff) | |
download | qt-creator-4089c906fa0fb2988e73c23d8eeb5a15d8b8629f.tar.gz |
Removed the ExpressionListAST node.
Done with Erik Verbruggen
Diffstat (limited to 'src/shared/cplusplus/CheckExpression.cpp')
-rw-r--r-- | src/shared/cplusplus/CheckExpression.cpp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/shared/cplusplus/CheckExpression.cpp b/src/shared/cplusplus/CheckExpression.cpp index 02263d6b82..3703577ed0 100644 --- a/src/shared/cplusplus/CheckExpression.cpp +++ b/src/shared/cplusplus/CheckExpression.cpp @@ -100,14 +100,6 @@ Scope *CheckExpression::switchScope(Scope *scope) return previousScope; } -bool CheckExpression::visit(ExpressionListAST *ast) -{ - for (ExpressionListAST *it = ast; it; it = it->next) { - FullySpecifiedType exprTy = semantic()->check(it->expression, _scope); - } - return false; -} - bool CheckExpression::visit(BinaryExpressionAST *ast) { FullySpecifiedType leftExprTy = semantic()->check(ast->left_expression, _scope); @@ -161,7 +153,7 @@ bool CheckExpression::visit(DeleteExpressionAST *ast) bool CheckExpression::visit(ArrayInitializerAST *ast) { for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { - FullySpecifiedType exprTy = semantic()->check(it->expression, _scope); + FullySpecifiedType exprTy = semantic()->check(it->value, _scope); } return false; } @@ -206,7 +198,7 @@ bool CheckExpression::visit(NewExpressionAST *ast) { if (ast->new_placement) { for (ExpressionListAST *it = ast->new_placement->expression_list; it; it = it->next) { - FullySpecifiedType exprTy = semantic()->check(it->expression, _scope); + FullySpecifiedType exprTy = semantic()->check(it->value, _scope); } } @@ -239,7 +231,7 @@ bool CheckExpression::visit(TypenameCallExpressionAST *ast) (void) semantic()->check(ast->name, _scope); for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { - FullySpecifiedType exprTy = semantic()->check(it->expression, _scope); + FullySpecifiedType exprTy = semantic()->check(it->value, _scope); (void) exprTy; } return false; @@ -249,7 +241,7 @@ bool CheckExpression::visit(TypeConstructorCallAST *ast) { FullySpecifiedType typeSpecTy = semantic()->check(ast->type_specifier, _scope); for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { - FullySpecifiedType exprTy = semantic()->check(it->expression, _scope); + FullySpecifiedType exprTy = semantic()->check(it->value, _scope); } return false; } @@ -350,7 +342,7 @@ bool CheckExpression::visit(CompoundLiteralAST *ast) bool CheckExpression::visit(CallAST *ast) { for (ExpressionListAST *it = ast->expression_list; it; it = it->next) { - FullySpecifiedType exprTy = semantic()->check(it->expression, _scope); + FullySpecifiedType exprTy = semantic()->check(it->value, _scope); } return false; } |