mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Factor out a new Requirement::getProtocolDecl() utility method
This commit is contained in:
@@ -2533,8 +2533,7 @@ static bool usesFeatureRethrowsProtocol(
|
||||
->getGenericSignatureOfContext()) {
|
||||
for (const auto &req : genericSig->getRequirements()) {
|
||||
if (req.getKind() == RequirementKind::Conformance &&
|
||||
usesFeatureRethrowsProtocol(
|
||||
req.getSecondType()->getAs<ProtocolType>()->getDecl(), checked))
|
||||
usesFeatureRethrowsProtocol(req.getProtocolDecl(), checked))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user