mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] AST: Introduce and use Identifier::isConstructor
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user