main.seskar.compiler.common.backend.isReallyExternal.kt Maven / Gradle / Ivy
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)
}