Skip to content

Conversation

@andersfugmann
Copy link
Contributor

@andersfugmann andersfugmann commented Jan 26, 2026

Ensure the Kotlin extractor is loaded as the last extension to be able to capture expansions from other extensions.

This addresses the changes in test output observed when upgrading to [support Kotlin 2.3.0.] (#20965)

…o be able to capture expansions from other extensions
@andersfugmann andersfugmann marked this pull request as ready for review January 26, 2026 12:06
Copilot AI review requested due to automatic review settings January 26, 2026 12:06
@andersfugmann andersfugmann requested review from a team as code owners January 26, 2026 12:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modifies the Kotlin extractor to ensure it loads as the last IR generation extension, allowing it to capture code expansions generated by other compiler plugins like kotlinx.serialization. This addresses test output changes observed when upgrading to Kotlin 2.3.0.

Changes:

  • Modified extension registration to use LoadingOrder.LAST instead of default loading order
  • Changed from using the convenience method IrGenerationExtension.registerExtension() to directly accessing the extension point API to specify loading order

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@igfoo igfoo left a comment

Choose a reason for hiding this comment

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

Looks plausible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants