Commit Graph

1 Commits

Author SHA1 Message Date
Alex Hoppen
8f421a7e06 [SourceKit] Fix a crash because the API for retrieving intherited protocols of a ProtocolDecl changed
apple/swift#60716 changed `NominalTypeDecl::getAllProtocols` to no longer work on `ProtocolDecl`. Add a new wrapper to Refactoring.cpp that dispatches to either `getInheritedProtocols` or `getAllProtocols` depending on whether the type is a protocol or not.

rdar://99096663
2022-08-24 23:19:31 +02:00