AST: ModuleDecl::checkConformance() is a static method

This commit is contained in:
Slava Pestov
2024-07-05 14:26:43 -04:00
parent 1901862afc
commit 3fcda140bb
45 changed files with 148 additions and 194 deletions

View File

@@ -291,9 +291,9 @@ bool AbstractionPattern::conformsToKnownProtocol(
= substTy->getASTContext().getProtocol(protocolKind);
auto definitelyConforms = [&](CanType t) -> bool {
auto result = suppressible->getParentModule()
->checkConformanceWithoutContext(t, suppressible,
/*allowMissing=*/false);
auto result =
ModuleDecl::checkConformanceWithoutContext(t, suppressible,
/*allowMissing=*/false);
return result.has_value() && !result.value().isInvalid();
};