mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Rename ProtocolConformance::getSubstitutions() to getSubstitutionMap() and remove ModuleDecl parameter
This commit is contained in:
@@ -286,8 +286,7 @@ bool ProtocolConformanceRef::hasUnavailableConformance() const {
|
||||
return true;
|
||||
|
||||
// Check the conformances in the substitution map.
|
||||
auto module = concrete->getDeclContext()->getParentModule();
|
||||
auto subMap = concrete->getSubstitutions(module);
|
||||
auto subMap = concrete->getSubstitutionMap();
|
||||
for (auto subConformance : subMap.getConformances()) {
|
||||
if (subConformance.hasUnavailableConformance())
|
||||
return true;
|
||||
@@ -327,7 +326,7 @@ bool ProtocolConformanceRef::forEachMissingConformance(
|
||||
}
|
||||
|
||||
// Check conformances that are part of this conformance.
|
||||
auto subMap = concreteConf->getSubstitutions(module);
|
||||
auto subMap = concreteConf->getSubstitutionMap();
|
||||
for (auto conformance : subMap.getConformances()) {
|
||||
if (conformance.forEachMissingConformance(module, fn))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user