Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Kotlin: clean up alternate-version code now that v1.5.x support is dropped #19496

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

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

Conversation

smowton
Copy link
Contributor

@smowton smowton commented May 15, 2025

Alternative versions for v1.5.0 and v1.5.20 are merged forwards into v1.6.0 preferring the later version. Three files are deleted entirely since there would now be only one version, and their definitions inlined.

@Copilot Copilot AI review requested due to automatic review settings May 15, 2025 11:13
@smowton smowton requested a review from a team as a code owner May 15, 2025 11:13
Copy link
Contributor

@Copilot 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

Clean up version-specific wrappers now that support for Kotlin v1.5.x has been dropped and inlined functionality directly into v1.6.0.

  • Delete unused type aliases and helper functions for v1.5.0, v1.5.20, and v1.6.0
  • Inline direct calls to pluginContext.irBuiltIns.annotationType and pluginContext.irBuiltIns.functionN
  • Remove obsolete imports of versioned helpers

Reviewed Changes

Copilot reviewed 42 out of 42 changed files in this pull request and generated no comments.

Show a summary per file
File Description
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/IrBuiltIns.kt Removed redundant IrBuiltIns typealias for v1.6.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/Functions.kt Removed redundant functionN helper for v1.6.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_20/FileEntry.kt Removed legacy FileEntry alias for v1.5.20
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_0/annotationType.kt Removed deprecated annotation type helper for v1.5.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_0/Psi2Ir.kt Removed stub of getPsi2Ir for v1.5.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_0/IrBuiltIns.kt Removed outdated IrBuiltIns alias for v1.5.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_0/Functions.kt Removed version-specific functionN implementation for v1.5.0
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_5_0/FileEntry.kt Removed legacy FileEntry alias for v1.5.0
java/kotlin-extractor/src/main/kotlin/MetaAnnotationSupport.kt Inlined pluginContext.irBuiltIns.annotationType in place of helper
java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt Inlined pluginContext.irBuiltIns.functionN in place of helper
Comments suppressed due to low confidence (1)

java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_6_0/Functions.kt:1

  • [nitpick] The v_1_6_0 directory is now empty after removing its files; consider deleting the folder to avoid leftover empty version directories.
package com.github.codeql.utils.versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.