Skip to content
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

Closed

Conversation

zTrap
Copy link

@zTrap zTrap commented May 30, 2024

Related to #711

common/src/commonMain/kotlin/Color.kt Show resolved Hide resolved
addAnnotation<Serializable> {
addMember("with·=·%T.Serializer::class", collectionCN)
}
addModifiers(PUBLIC, VALUE)
Copy link
Member

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)
Copy link
Member

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?

@zTrap zTrap requested a review from DRSchlaubi May 30, 2024 11:02
@lukellmann
Copy link
Member

I'd like to discuss this some more before deciding what to do with this, see https://discord.com/channels/556525343595298817/1245773750486438060

@zTrap zTrap closed this Jun 2, 2024
@zTrap
Copy link
Author

zTrap commented Jun 2, 2024

All changes moved to #886

@zTrap zTrap deleted the feature/migrate-flags-to-value-classes branch June 2, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants