diff options
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); |