Run the binding pass

This commit is contained in:
Roberto Raggi
2009-06-03 12:13:22 +02:00
parent 31e0b43395
commit 7b44f1749a
3 changed files with 17 additions and 1 deletions

View File

@@ -567,3 +567,12 @@ bool Binder::visit(Block *)
} // end of anonymous namespace
NamespaceBindingPtr CPlusPlus::bind(Document::Ptr doc, Snapshot snapshot)
{
NamespaceBindingPtr global(new NamespaceBinding());
Binder bind(global.data());
bind(doc, snapshot);
return global;
}