Kotlin: support 2.4.20-RC - #22404
Draft
andersfugmann wants to merge 3 commits into
Draft
Conversation
Add a compiler-specific extractor variant for Kotlin 2.4.20-RC. Use the modern compiler plugin registrar after removal of the legacy ComponentRegistrar API, opt in to the remaining K1 compatibility APIs, and update the generated expectations for changed fake-override IR locations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Select the supported release candidate by default and update the generated too-new diagnostic expectation for the new exclusive version bound. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Regenerate the inherited interface default expectation for Kotlin 2.4.20-RC, which reports compiler-generated forwarders at synthetic locations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Support Kotlin 2.4.20-RC in the Kotlin extractor.
Kotlin 2.4.20-RC removes the legacy
ComponentRegistrarcompiler API and makes the remaining K1 compatibility APIs opt-in. This change adds a 2.4.20-RC extractor variant that usesCompilerPluginRegistraronly, keeps the legacy service for older compiler variants, and updates the generated expectations affected by changed fake-override IR locations and declaration ordering.Parent PR: github/semmle-code#56185
Validation
v2.4.20-RCcompiler passed the Kotlin basic functionality extraction testNo tests are disabled.