File tree 1 file changed +0
-12
lines changed
1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -965,7 +965,6 @@ class IndexSwiftASTWalker : public SourceEntityWalker {
965
965
bool reportRelatedTypeRef (const TypeLoc &Ty, SymbolRoleSet Relations, Decl *Related);
966
966
bool reportInheritedTypeRefs (
967
967
ArrayRef<InheritedEntry> Inherited, Decl *Inheritee);
968
- NominalTypeDecl *getTypeLocAsNominalTypeDecl (const TypeLoc &Ty);
969
968
970
969
bool reportPseudoGetterDecl (VarDecl *D) {
971
970
return reportPseudoAccessor (D, AccessorKind::Get, /* IsRef=*/ false ,
@@ -1474,17 +1473,6 @@ bool IndexSwiftASTWalker::reportPseudoAccessor(AbstractStorageDecl *D,
1474
1473
return !Cancelled;
1475
1474
}
1476
1475
1477
- NominalTypeDecl *
1478
- IndexSwiftASTWalker::getTypeLocAsNominalTypeDecl (const TypeLoc &Ty) {
1479
- if (Type T = Ty.getType ())
1480
- return T->getAnyNominal ();
1481
- if (auto *declRefTR = dyn_cast_or_null<DeclRefTypeRepr>(Ty.getTypeRepr ())) {
1482
- if (auto NTD = dyn_cast_or_null<NominalTypeDecl>(declRefTR->getBoundDecl ()))
1483
- return NTD;
1484
- }
1485
- return nullptr ;
1486
- }
1487
-
1488
1476
bool IndexSwiftASTWalker::reportExtension (ExtensionDecl *D) {
1489
1477
SourceLoc Loc = getLocForExtension (D);
1490
1478
NominalTypeDecl *NTD = D->getExtendedNominal ();
You can’t perform that action at this time.
0 commit comments