[NFC] AST: Introduce and use Identifier::isConstructor

This commit is contained in:
Anthony Latsis
2023-12-25 16:54:52 +03:00
parent 52615eaeee
commit bd2f48d9d2
15 changed files with 29 additions and 30 deletions

View File

@@ -4325,7 +4325,7 @@ bool MissingMemberFailure::diagnoseAsError() {
correction->addFixits(diagnostic);
} else if ((instanceTy->getAnyNominal() ||
instanceTy->is<ExistentialType>()) &&
getName().getBaseName() == DeclBaseName::createConstructor()) {
getName().getBaseName().isConstructor()) {
auto &cs = getConstraintSystem();
auto result = cs.performMemberLookup(