-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All flags and Color migrated to value classes #947
Conversation
addAnnotation<Serializable> { | ||
addMember("with·=·%T.Serializer::class", collectionCN) | ||
} | ||
addModifiers(PUBLIC, VALUE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't kotlinpoet add the public modifier automatically?
@@ -79,9 +79,11 @@ internal fun BitFlags.generateFileSpec(originatingFile: KSFile) = fileSpecForGen | |||
} | |||
addClass(collectionCN) { | |||
addCollectionKDoc() | |||
addAnnotation<JvmInline> {} | |||
addAnnotation<Serializable> { | |||
addMember("with·=·%T.Serializer::class", collectionCN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need a custom serializer here either?
I'd like to discuss this some more before deciding what to do with this, see https://discord.com/channels/556525343595298817/1245773750486438060 |
All changes moved to #886 |
Related to #711