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:
@@ -63,14 +63,15 @@ ValueDecl *LookupResultEntry::getBaseDecl() const {
|
||||
|
||||
void DebuggerClient::anchor() {}
|
||||
|
||||
void AccessFilteringDeclConsumer::foundDecl(ValueDecl *D,
|
||||
DeclVisibilityKind reason) {
|
||||
void AccessFilteringDeclConsumer::foundDecl(
|
||||
ValueDecl *D, DeclVisibilityKind reason,
|
||||
DynamicLookupInfo dynamicLookupInfo) {
|
||||
if (D->isInvalid())
|
||||
return;
|
||||
if (!D->isAccessibleFrom(DC))
|
||||
return;
|
||||
|
||||
ChainedConsumer.foundDecl(D, reason);
|
||||
ChainedConsumer.foundDecl(D, reason, dynamicLookupInfo);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user