Commit b7a0dbfa authored by Roberto Raggi's avatar Roberto Raggi

Expand the enclosing namespace.

parent 4a58646b
......@@ -400,6 +400,11 @@ void LookupContext::expandNamespace(Namespace *ns,
const QList<Scope *> &visibleScopes,
QList<Scope *> *expandedScopes) const
{
//qDebug() << "*** expand namespace:" << ns->fileName() << ns->line() << ns->column();
if (Scope *encl = ns->enclosingNamespaceScope())
expand(encl, visibleScopes, expandedScopes);
if (Name *nsName = ns->name()) {
const QList<Symbol *> namespaceList = resolveNamespace(nsName, visibleScopes);
foreach (Symbol *otherNs, namespaceList) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment