@@ -5691,7 +5691,7 @@ void NominalTypeDecl::synthesizeSemanticMembersIfNeeded(DeclName member) {
56915691 auto baseName = member.getBaseName ();
56925692 auto &Context = getASTContext ();
56935693 llvm::Optional<ImplicitMemberAction> action = llvm::None;
5694- if (baseName == DeclBaseName::createConstructor ())
5694+ if (baseName. isConstructor ())
56955695 action.emplace (ImplicitMemberAction::ResolveImplicitInit);
56965696
56975697 if (member.isSimpleName () && !baseName.isSpecial ()) {
@@ -5701,19 +5701,20 @@ void NominalTypeDecl::synthesizeSemanticMembersIfNeeded(DeclName member) {
57015701 } else {
57025702 auto argumentNames = member.getArgumentNames ();
57035703 if (member.isSimpleName () || argumentNames.size () == 1 ) {
5704- if (baseName == DeclBaseName::createConstructor ()) {
5704+ if (baseName. isConstructor ()) {
57055705 if ((member.isSimpleName () || argumentNames.front () == Context.Id_from )) {
57065706 action.emplace (ImplicitMemberAction::ResolveDecodable);
57075707 } else if (argumentNames.front () == Context.Id_system ) {
57085708 action.emplace (ImplicitMemberAction::ResolveDistributedActorSystem);
57095709 }
57105710 } else if (!baseName.isSpecial () &&
5711- baseName.getIdentifier () == Context.Id_encode &&
5712- (member.isSimpleName () || argumentNames.front () == Context.Id_to )) {
5711+ baseName.getIdentifier () == Context.Id_encode &&
5712+ (member.isSimpleName () ||
5713+ argumentNames.front () == Context.Id_to )) {
57135714 action.emplace (ImplicitMemberAction::ResolveEncodable);
57145715 }
57155716 } else if (member.isSimpleName () || argumentNames.size () == 2 ) {
5716- if (baseName == DeclBaseName::createConstructor ()) {
5717+ if (baseName. isConstructor ()) {
57175718 if (argumentNames[0 ] == Context.Id_resolve &&
57185719 argumentNames[1 ] == Context.Id_using ) {
57195720 action.emplace (ImplicitMemberAction::ResolveDistributedActor);
@@ -10370,7 +10371,7 @@ ConstructorDecl::ConstructorDecl(DeclName Name, SourceLoc ConstructorLoc,
1037010371 Bits.ConstructorDecl .HasStubImplementation = 0 ;
1037110372 Bits.ConstructorDecl .Failable = Failable;
1037210373
10373- assert (Name.getBaseName () == DeclBaseName::createConstructor ());
10374+ assert (Name.getBaseName (). isConstructor ());
1037410375}
1037510376
1037610377ConstructorDecl *ConstructorDecl::createImported (
0 commit comments