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.
This commit is contained in:
Ian Lynagh
2023-09-01 11:20:58 +01:00
parent 72e08a9277
commit 181594badb
4 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
package org.jetbrains.kotlin.ir.symbols
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
annotation class IrSymbolInternals

View File

@@ -0,0 +1,10 @@
package com.github.codeql.utils.versions
import org.jetbrains.kotlin.ir.declarations.*
import org.jetbrains.kotlin.name.FqName
val IrFile.packageFqName: FqName
get() = this.fqName
val IrPackageFragment.packageFqName: FqName
get() = this.fqName

View File

@@ -0,0 +1,4 @@
package com.github.codeql
// The compiler provides the annotation class, so we don't need to do
// anything

View File

@@ -0,0 +1,3 @@
package com.github.codeql
// The compiler provides packageFqName, so we don't need to do anything