@@ -5690,7 +5690,7 @@ void NominalTypeDecl::synthesizeSemanticMembersIfNeeded(DeclName member) {
56905690 auto baseName = member.getBaseName ();
56915691 auto &Context = getASTContext ();
56925692 llvm::Optional<ImplicitMemberAction> action = llvm::None;
5693- if (baseName == DeclBaseName::createConstructor ())
5693+ if (baseName. isConstructor ())
56945694 action.emplace (ImplicitMemberAction::ResolveImplicitInit);
56955695
56965696 if (member.isSimpleName () && !baseName.isSpecial ()) {
@@ -5700,19 +5700,20 @@ void NominalTypeDecl::synthesizeSemanticMembersIfNeeded(DeclName member) {
57005700 } else {
57015701 auto argumentNames = member.getArgumentNames ();
57025702 if (member.isSimpleName () || argumentNames.size () == 1 ) {
5703- if (baseName == DeclBaseName::createConstructor ()) {
5703+ if (baseName. isConstructor ()) {
57045704 if ((member.isSimpleName () || argumentNames.front () == Context.Id_from )) {
57055705 action.emplace (ImplicitMemberAction::ResolveDecodable);
57065706 } else if (argumentNames.front () == Context.Id_system ) {
57075707 action.emplace (ImplicitMemberAction::ResolveDistributedActorSystem);
57085708 }
57095709 } else if (!baseName.isSpecial () &&
5710- baseName.getIdentifier () == Context.Id_encode &&
5711- (member.isSimpleName () || argumentNames.front () == Context.Id_to )) {
5710+ baseName.getIdentifier () == Context.Id_encode &&
5711+ (member.isSimpleName () ||
5712+ argumentNames.front () == Context.Id_to )) {
57125713 action.emplace (ImplicitMemberAction::ResolveEncodable);
57135714 }
57145715 } else if (member.isSimpleName () || argumentNames.size () == 2 ) {
5715- if (baseName == DeclBaseName::createConstructor ()) {
5716+ if (baseName. isConstructor ()) {
57165717 if (argumentNames[0 ] == Context.Id_resolve &&
57175718 argumentNames[1 ] == Context.Id_using ) {
57185719 action.emplace (ImplicitMemberAction::ResolveDistributedActor);
@@ -10346,7 +10347,7 @@ ConstructorDecl::ConstructorDecl(DeclName Name, SourceLoc ConstructorLoc,
1034610347 Bits.ConstructorDecl .HasStubImplementation = 0 ;
1034710348 Bits.ConstructorDecl .Failable = Failable;
1034810349
10349- assert (Name.getBaseName () == DeclBaseName::createConstructor ());
10350+ assert (Name.getBaseName (). isConstructor ());
1035010351}
1035110352
1035210353ConstructorDecl *ConstructorDecl::createImported (
0 commit comments