-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14323 from igfoo/igfoo/supportk2
Kotlin: Claim to support Kotlin 2
- Loading branch information
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
12 changes: 12 additions & 0 deletions
12
java/kotlin-extractor/src/main/kotlin/utils/versions/v_1_4_32/Kotlin2ComponentRegistrar.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// For ComponentRegistrar | ||
@file:Suppress("DEPRECATION") | ||
|
||
package com.github.codeql | ||
|
||
import org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi | ||
import org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar | ||
|
||
@OptIn(ExperimentalCompilerApi::class) | ||
abstract class Kotlin2ComponentRegistrar : ComponentRegistrar { | ||
/* Nothing to do; supportsK2 doesn't exist yet. */ | ||
} |
13 changes: 13 additions & 0 deletions
13
...kotlin-extractor/src/main/kotlin/utils/versions/v_1_9_0-Beta/Kotlin2ComponentRegistrar.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// For ComponentRegistrar | ||
@file:Suppress("DEPRECATION") | ||
|
||
package com.github.codeql | ||
|
||
import org.jetbrains.kotlin.compiler.plugin.ExperimentalCompilerApi | ||
import org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar | ||
|
||
@OptIn(ExperimentalCompilerApi::class) | ||
abstract class Kotlin2ComponentRegistrar : ComponentRegistrar { | ||
override val supportsK2: Boolean | ||
get() = true | ||
} |