File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1959,16 +1959,14 @@ void swift::ide::api::
1959
1959
SwiftDeclCollector::addConformancesToTypeDecl (SDKNodeDeclType *Root,
1960
1960
NominalTypeDecl *NTD) {
1961
1961
if (auto *PD = dyn_cast<ProtocolDecl>(NTD)) {
1962
- PD-> walkInheritedProtocols ([&](ProtocolDecl *inherited) {
1963
- if (PD != inherited && !Ctx.shouldIgnore (inherited)) {
1962
+ for ( auto *inherited : PD-> getAllInheritedProtocols () ) {
1963
+ if (!Ctx.shouldIgnore (inherited)) {
1964
1964
ProtocolConformanceRef Conf (inherited);
1965
1965
auto ConfNode = SDKNodeInitInfo (Ctx, Conf)
1966
1966
.createSDKNode (SDKNodeKind::Conformance);
1967
1967
Root->addConformance (ConfNode);
1968
1968
}
1969
-
1970
- return TypeWalker::Action::Continue;
1971
- });
1969
+ }
1972
1970
} else {
1973
1971
// Avoid adding the same conformance twice.
1974
1972
SmallPtrSet<ProtocolConformance*, 4 > Seen;
You can’t perform that action at this time.
0 commit comments