[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

@@ -419,7 +419,7 @@ ValueDecl *DerivedConformance::deriveCodingKey(ValueDecl *requirement) {
};
return deriveProperty(*this, optionalIntType, Context.Id_intValue, synth);
} else if (name == DeclBaseName::createConstructor()) {
} else if (name.isConstructor()) {
auto argumentNames = requirement->getName().getArgumentNames();
if (argumentNames.size() == 1) {
if (argumentNames[0] == Context.Id_stringValue) {