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

Introduce Modifiable interface to standardize modifiers API #2005

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Egorand
Copy link
Collaborator

@Egorand Egorand commented Oct 15, 2024

Part of #973.

  • docs/changelog.md has been updated if applicable.
    • Changes not visible to library consumers, such as build script, documentation, or test code updates, don't need to
      be added to the changelog.

@Egorand Egorand changed the title Introduce Modifiable interface to standardized modifiers API Introduce Modifiable interface to standardize modifiers API Oct 15, 2024
Comment on lines -329 to -335
public fun addModifiers(vararg modifiers: KModifier): Builder = apply {
this.modifiers += modifiers
}

public fun addModifiers(modifiers: Iterable<KModifier>): Builder = apply {
this.modifiers += modifiers
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

These need to be retained for binary compatibility, such as with addAnnotation below. And in other specs.

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