All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.seskar.compiler.common.backend.isReallyExternal.kt Maven / Gradle / Ivy

There is a newer version: 3.32.0
Show newest version
package seskar.compiler.common.backend

import org.jetbrains.kotlin.ir.declarations.IrClass

// WA for https://youtrack.jetbrains.com/issue/KT-67627
internal fun isReallyExternal(
    declaration: IrClass,
): Boolean {
    if (declaration.isExternal)
        return true

    val parent = declaration.parent as? IrClass
        ?: return false

    return isReallyExternal(parent)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy