File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -569,9 +569,13 @@ bool IndexSwiftASTWalker::startEntityDecl(ValueDecl *D) {
569
569
if (addRelation (Info, (SymbolRoleSet) SymbolRole::RelationOverrideOf, Overridden))
570
570
return false ;
571
571
}
572
- for (auto Conf : D->getSatisfiedProtocolRequirements ()) {
573
- if (addRelation (Info, (SymbolRoleSet) SymbolRole::RelationOverrideOf, Conf))
574
- return false ;
572
+ // FIXME: This is quite expensive and not worth the cost for indexing purposes
573
+ // of system modules. Revisit if this becomes more efficient.
574
+ if (!isSystemModule) {
575
+ for (auto Conf : D->getSatisfiedProtocolRequirements ()) {
576
+ if (addRelation (Info, (SymbolRoleSet) SymbolRole::RelationOverrideOf, Conf))
577
+ return false ;
578
+ }
575
579
}
576
580
577
581
if (auto Parent = getParentDecl ()) {
You can’t perform that action at this time.
0 commit comments