Commit 06fcf59f authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Added method arguments to the lookup context of an ObjC method.

parent 00f67670
......@@ -466,6 +466,14 @@ void LookupContext::expandFunction(Function *function,
}
}
void LookupContext::expandObjCMethod(ObjCMethod *method,
const QList<Scope *> &visibleScopes,
QList<Scope *> *expandedScopes) const
{
if (! expandedScopes->contains(method->arguments()))
expandedScopes->append(method->arguments());
}
void LookupContext::expand(Scope *scope,
const QList<Scope *> &visibleScopes,
QList<Scope *> *expandedScopes) const
......@@ -483,5 +491,7 @@ void LookupContext::expand(Scope *scope,
expandBlock(block, visibleScopes, expandedScopes);
} else if (Function *fun = scope->owner()->asFunction()) {
expandFunction(fun, visibleScopes, expandedScopes);
} else if (ObjCMethod *meth = scope->owner()->asObjCMethod()) {
expandObjCMethod(meth, visibleScopes, expandedScopes);
}
}
......@@ -114,6 +114,10 @@ public:
const QList<Scope *> &visibleScopes,
QList<Scope *> *expandedScopes) const;
void expandObjCMethod(ObjCMethod *method,
const QList<Scope *> &visibleScopes,
QList<Scope *> *expandedScopes) const;
void expandEnumOrAnonymousSymbol(ScopedSymbol *scopedSymbol,
QList<Scope *> *expandedScopes) const;
......
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