Skip to content

Commit b800b0b

Browse files
committed
[CodeSynthesis] TypeWrappers: Add "memberwise" to implicit constructor kind
1 parent 4d5cf77 commit b800b0b

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
@@ -232,9 +232,9 @@ enum class ImplicitConstructorKind {
232232
/// the instance variables from a parameter of the same type and
233233
/// name.
234234
Memberwise,
235-
/// The constructor of a type wrapped type which is going to
235+
/// The memberwise constructor of a type wrapped type which is going to
236236
/// initialize underlying storage for all applicable properties.
237-
TypeWrapper,
237+
TypeWrapperMemberwise,
238238
};
239239

240240
static ParamDecl *createMemberwiseInitParameter(DeclContext *DC,
@@ -358,7 +358,7 @@ static ConstructorDecl *createImplicitConstructor(NominalTypeDecl *decl,
358358

359359
params.push_back(arg);
360360
}
361-
} else if (ICK == ImplicitConstructorKind::TypeWrapper) {
361+
} else if (ICK == ImplicitConstructorKind::TypeWrapperMemberwise) {
362362
// Access to the initializer should match that of its parent type.
363363
accessLevel = decl->getEffectiveAccess();
364364

@@ -1689,7 +1689,7 @@ ConstructorDecl *SynthesizeTypeWrappedTypeMemberwiseInitializer::evaluate(
16891689
// Create the implicit memberwise constructor.
16901690
auto &ctx = wrappedType->getASTContext();
16911691
auto ctor = createImplicitConstructor(
1692-
wrappedType, ImplicitConstructorKind::TypeWrapper, ctx);
1692+
wrappedType, ImplicitConstructorKind::TypeWrapperMemberwise, ctx);
16931693
wrappedType->addMember(ctor);
16941694

16951695
ctor->setBodySynthesizer(synthesizeTypeWrappedTypeMemberwiseInitializerBody);

0 commit comments

Comments
 (0)