Skip to content
Snippets Groups Projects
Commit db5a61d3 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Process the translation unit.

parent 6321ccee
No related branches found
No related tags found
No related merge requests found
...@@ -704,9 +704,12 @@ void Bind::translationUnit(TranslationUnitAST *ast) ...@@ -704,9 +704,12 @@ void Bind::translationUnit(TranslationUnitAST *ast)
if (! ast) if (! ast)
return; return;
Namespace *globalNamespace = control()->newNamespace(0, 0);
Scope *previousScope = switchScope(globalNamespace);
for (DeclarationListAST *it = ast->declaration_list; it; it = it->next) { for (DeclarationListAST *it = ast->declaration_list; it; it = it->next) {
this->declaration(it->value); this->declaration(it->value);
} }
(void) switchScope(previousScope);
} }
bool Bind::visit(ObjCProtocolRefsAST *ast) bool Bind::visit(ObjCProtocolRefsAST *ast)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment