diff options
author | Roberto Raggi <qtc-committer@nokia.com> | 2009-01-06 12:15:28 +0100 |
---|---|---|
committer | Roberto Raggi <qtc-committer@nokia.com> | 2009-01-06 12:15:51 +0100 |
commit | af89fb1bfcf3024604322214496430d216f4843e (patch) | |
tree | 958344f7c9daff5518e16f1a2391157d4853f138 /shared/cplusplus/AST.cpp | |
parent | 03854281da39790878062c00eb46b03c9b5beeb1 (diff) | |
download | qt-creator-af89fb1bfcf3024604322214496430d216f4843e.tar.gz |
Implemented ExpressionListAST::accept().
Diffstat (limited to 'shared/cplusplus/AST.cpp')
-rw-r--r-- | shared/cplusplus/AST.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/shared/cplusplus/AST.cpp b/shared/cplusplus/AST.cpp index cf37e5cb59..282b5876c8 100644 --- a/shared/cplusplus/AST.cpp +++ b/shared/cplusplus/AST.cpp @@ -1352,8 +1352,12 @@ unsigned ExceptionSpecificationAST::lastToken() const return throw_token + 1; } -void ExpressionListAST::accept0(ASTVisitor *) -{ assert(0); } +void ExpressionListAST::accept0(ASTVisitor *visitor) +{ + for (const ExpressionListAST *it = this; it; it = it->next) { + accept(it->expression, visitor); + } +} unsigned ExpressionListAST::firstToken() const { |