Skip to content

Commit 7dac156

Browse files
committed
[CodeSynthesis] TypeWrappers: Add "memberwise" to implicit constructor kind
1 parent eaa344a commit 7dac156

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Sema/CodeSynthesis.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ enum class ImplicitConstructorKind {
246246
/// the instance variables from a parameter of the same type and
247247
/// name.
248248
Memberwise,
249-
/// The constructor of a type wrapped type which is going to
249+
/// The memberwise constructor of a type wrapped type which is going to
250250
/// initialize underlying storage for all applicable properties.
251-
TypeWrapper,
251+
TypeWrapperMemberwise,
252252
};
253253

254254
static ParamDecl *createMemberwiseInitParameter(DeclContext *DC,
@@ -372,7 +372,7 @@ static ConstructorDecl *createImplicitConstructor(NominalTypeDecl *decl,
372372

373373
params.push_back(arg);
374374
}
375-
} else if (ICK == ImplicitConstructorKind::TypeWrapper) {
375+
} else if (ICK == ImplicitConstructorKind::TypeWrapperMemberwise) {
376376
// Access to the initializer should match that of its parent type.
377377
accessLevel = decl->getEffectiveAccess();
378378

@@ -1703,7 +1703,7 @@ ConstructorDecl *SynthesizeTypeWrappedTypeMemberwiseInitializer::evaluate(
17031703
// Create the implicit memberwise constructor.
17041704
auto &ctx = wrappedType->getASTContext();
17051705
auto ctor = createImplicitConstructor(
1706-
wrappedType, ImplicitConstructorKind::TypeWrapper, ctx);
1706+
wrappedType, ImplicitConstructorKind::TypeWrapperMemberwise, ctx);
17071707
wrappedType->addMember(ctor);
17081708

17091709
ctor->setBodySynthesizer(synthesizeTypeWrappedTypeMemberwiseInitializerBody);

0 commit comments

Comments
 (0)