mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Pass DynamicLookupInfo through VisibleDeclConsumers NFC
This commit adds a new type DynamicLookupInfo that provides information about how a dynamic member lookup found a particular Decl. This is needed to correctly handle KeyPath dynamic member lookups, but for now just plumb it through everywhere.
This commit is contained in:
@@ -147,7 +147,8 @@ void ConformingMethodListCallbacks::getMatchingMethods(
|
||||
: CurModule(DC->getParentModule()), T(T), ExpectedTypes(expectedTypes),
|
||||
Result(result) {}
|
||||
|
||||
void foundDecl(ValueDecl *VD, DeclVisibilityKind reason) {
|
||||
void foundDecl(ValueDecl *VD, DeclVisibilityKind reason,
|
||||
DynamicLookupInfo) {
|
||||
if (isMatchingMethod(VD) && !VD->shouldHideFromEditor())
|
||||
Result.push_back(VD);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user