Skip to content

Commit 181594b

Browse files
committed
Kotlin: Add packageFqName and IrSymbolInternals compatibility
In master, we need to switch to these, but for building for older versions we need to add our own support. Currently the v_1_9_255 files are nto used, but we will need them (in a differently-named directory) for a future release.
1 parent 72e08a9 commit 181594b

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package org.jetbrains.kotlin.ir.symbols
2+
3+
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
4+
annotation class IrSymbolInternals
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.github.codeql.utils.versions
2+
3+
import org.jetbrains.kotlin.ir.declarations.*
4+
import org.jetbrains.kotlin.name.FqName
5+
6+
val IrFile.packageFqName: FqName
7+
get() = this.fqName
8+
9+
val IrPackageFragment.packageFqName: FqName
10+
get() = this.fqName
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.github.codeql
2+
3+
// The compiler provides the annotation class, so we don't need to do
4+
// anything
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.github.codeql
2+
3+
// The compiler provides packageFqName, so we don't need to do anything

0 commit comments

Comments
 (0)