mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
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:
@@ -0,0 +1,4 @@
|
||||
package org.jetbrains.kotlin.ir.symbols
|
||||
|
||||
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
|
||||
annotation class IrSymbolInternals
|
||||
@@ -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
|
||||
@@ -0,0 +1,4 @@
|
||||
package com.github.codeql
|
||||
|
||||
// The compiler provides the annotation class, so we don't need to do
|
||||
// anything
|
||||
@@ -0,0 +1,3 @@
|
||||
package com.github.codeql
|
||||
|
||||
// The compiler provides packageFqName, so we don't need to do anything
|
||||
Reference in New Issue
Block a user