[IR] Implement IR actualizer and use it for K2 test and CLI scenario

Implement calculateExpectActualMap for Fir2IrComponents

^KT-51753 Fixed
This commit is contained in:
Ivan Kochurkin
2022-11-18 19:59:14 +01:00
committed by Space Team
parent 15ad9d134c
commit 8936220876
38 changed files with 1241 additions and 27 deletions
@@ -4,6 +4,7 @@
import kotlin.reflect.KProperty
fun <T> lazy(initializer: () -> T): Lazy<T> = TODO()
interface Lazy<out T> {
operator fun getValue(thisRef: Any?, property: KProperty<*>): T = TODO()
}
@@ -36,6 +37,8 @@ expect object OuterObject {
object NestedObject
}
fun TODO(): Nothing = null!!
// MODULE: m2-jvm()()(m1-common)
// FILE: jvm.kt
@@ -3,9 +3,10 @@
// FILE: common.kt
import kotlin.reflect.KProperty
fun <T> lazy(initializer: () -> T): Lazy<T> = <!UNRESOLVED_REFERENCE!>TODO<!>()
fun <T> lazy(initializer: () -> T): Lazy<T> = TODO()
interface Lazy<out T> {
operator fun getValue(thisRef: Any?, property: KProperty<*>): T = <!UNRESOLVED_REFERENCE!>TODO<!>()
operator fun getValue(thisRef: Any?, property: KProperty<*>): T = TODO()
}
expect class OuterClass {
@@ -36,6 +37,8 @@ expect object OuterObject {
object NestedObject
}
fun TODO(): Nothing = null!!
// MODULE: m2-jvm()()(m1-common)
// FILE: jvm.kt
@@ -1,6 +1,7 @@
// -- Module: <m1-common> --
package
public fun TODO(): kotlin.Nothing
public fun </*0*/ T> lazy(/*0*/ initializer: () -> T): Lazy<T>
public interface Lazy</*0*/ out T> {
@@ -79,6 +80,7 @@ public expect object OuterObject {
// -- Module: <m2-jvm> --
package
public fun TODO(): kotlin.Nothing
public fun </*0*/ T> lazy(/*0*/ initializer: () -> T): Lazy<T>
public interface Lazy</*0*/ out T> {