@@ -112,7 +112,7 @@ void RuleBuilder::initWithProtocolSignatureRequirements(
112112 // between getTypeForTerm() and isValidTypeParameter(), we need to add rules
113113 // for inherited protocols.
114114 if (reqs.getErrors ().contains (GenericSignatureErrorFlags::CompletionFailed)) {
115- for (auto *inheritedProto : Context. getInheritedProtocols ( proto)) {
115+ for (auto *inheritedProto : proto-> getAllInheritedProtocols ( )) {
116116 Requirement req (RequirementKind::Conformance,
117117 proto->getSelfInterfaceType (),
118118 inheritedProto->getDeclaredInterfaceType ());
@@ -238,7 +238,7 @@ void RuleBuilder::addPermanentProtocolRules(const ProtocolDecl *proto) {
238238 for (auto *assocType : proto->getAssociatedTypeMembers ())
239239 addAssociatedType (assocType, proto);
240240
241- for (auto *inheritedProto : Context. getInheritedProtocols ( proto)) {
241+ for (auto *inheritedProto : proto-> getAllInheritedProtocols ( )) {
242242 for (auto *assocType : inheritedProto->getAssociatedTypeMembers ())
243243 addAssociatedType (assocType, proto);
244244 }
@@ -553,7 +553,7 @@ void RuleBuilder::collectPackShapeRules(ArrayRef<GenericTypeParamType *> generic
553553 addMemberShapeRule (proto, assocType);
554554 }
555555
556- for (auto *inheritedProto : Context. getInheritedProtocols ( proto)) {
556+ for (auto *inheritedProto : proto-> getAllInheritedProtocols ( )) {
557557 for (auto *assocType : inheritedProto->getAssociatedTypeMembers ()) {
558558 addMemberShapeRule (proto, assocType);
559559 }
0 commit comments