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

Add support for annotation and interface merging #1119

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

JoelWilcox
Copy link
Member

This continues the work started in rick/main-k2-merging-pt-2 which gets us baseline merging support for @MergeComponent.

@JoelWilcox JoelWilcox force-pushed the joel/merging-poc-finish branch from 682eaaf to 32cf177 Compare February 20, 2025 00:20
@JoelWilcox JoelWilcox marked this pull request as ready for review February 20, 2025 19:20
@JoelWilcox JoelWilcox force-pushed the joel/merging-poc-finish branch 3 times, most recently from 7399601 to dfa6791 Compare February 21, 2025 00:20
kotlinCompilerArgs.addAll(
// The flag is needed because we extend an interface that uses @JvmDefault and the Kotlin
// compiler requires this flag when doing so.
"-Xjvm-default=all",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this actually needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it's not 👍, removed

Comment on lines 201 to 205
val newModulesText = when {
oldModulesArg == null -> "modules = [$classArgList]"
existingModuleArgExpressions.isEmpty() -> "modules = [$classArgList]"
else -> "modules = [$classArgList]"
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I first wrote this, it actually did different things for different conditions. Now, it seems decidedly less useful.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Updated to be a direct assignment

@JoelWilcox JoelWilcox force-pushed the joel/merging-poc-finish branch from dfa6791 to 8d67335 Compare February 21, 2025 20:13
@JoelWilcox JoelWilcox force-pushed the joel/merging-poc-finish branch from 8d67335 to 39500f2 Compare February 21, 2025 22:02
@JoelWilcox JoelWilcox merged commit 901ff49 into main-k2 Feb 21, 2025
17 checks passed
@JoelWilcox JoelWilcox deleted the joel/merging-poc-finish branch February 21, 2025 22:36
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.

2 participants