Added public methods to process declarations and expressions.

This commit is contained in:
Roberto Raggi
2010-08-13 11:12:00 +02:00
parent 105ec09e94
commit b50619066a
2 changed files with 16 additions and 0 deletions

View File

@@ -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);