diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 11:12:00 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-08-13 11:12:19 +0200 |
commit | b50619066a59e5125a5ebc5f2f8bbc901a9a771b (patch) | |
tree | 85d493b0abc7935058a61b9fa6fc75b091347ea3 /src/shared/cplusplus/Bind.cpp | |
parent | 105ec09e94bd9a0708c7d1878cf2f3e7a51879c8 (diff) | |
download | qt-creator-b50619066a59e5125a5ebc5f2f8bbc901a9a771b.tar.gz |
Added public methods to process declarations and expressions.
Diffstat (limited to 'src/shared/cplusplus/Bind.cpp')
-rw-r--r-- | src/shared/cplusplus/Bind.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Bind.cpp b/src/shared/cplusplus/Bind.cpp index c04cf0724d..ffcd4aa217 100644 --- a/src/shared/cplusplus/Bind.cpp +++ b/src/shared/cplusplus/Bind.cpp @@ -112,6 +112,20 @@ void Bind::operator()(TranslationUnitAST *ast, Namespace *globalNamespace) (void) switchScope(previousScope); } +void Bind::operator()(DeclarationAST *ast, Scope *scope) +{ + Scope *previousScope = switchScope(scope); + declaration(ast); + (void) switchScope(previousScope); +} + +void Bind::operator()(ExpressionAST *ast, Scope *scope) +{ + Scope *previousScope = switchScope(scope); + expression(ast); + (void) switchScope(previousScope); +} + void Bind::statement(StatementAST *ast) { accept(ast); |