mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Handle dynamic member lookup in annotation and cursor info
Ensure the various entity walkers handle the implicit subscript reference correctly (usually by ignoring it) and fall through to the underlying declarations. rdar://49028895
This commit is contained in:
@@ -905,8 +905,11 @@ public:
|
||||
bool visitDeclReference(ValueDecl *D, CharSourceRange Range,
|
||||
TypeDecl *CtorTyRef, ExtensionDecl *ExtTyRef, Type T,
|
||||
ReferenceMetaData Data) override {
|
||||
if (isa<VarDecl>(D) && D->hasName() &&
|
||||
D->getFullName() == D->getASTContext().Id_self)
|
||||
if (Data.isImplicit)
|
||||
return true;
|
||||
|
||||
if (isa<VarDecl>(D) && D->hasName() &&
|
||||
D->getFullName() == D->getASTContext().Id_self)
|
||||
return true;
|
||||
|
||||
// Do not annotate references to unavailable decls.
|
||||
|
||||
Reference in New Issue
Block a user