diff --git a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.kt.txt b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.kt.txt index 83741801142..48ed0c62440 100644 --- a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.kt.txt +++ b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.kt.txt @@ -42,86 +42,86 @@ data class Test1 { get operator fun component1(): Array { - return #stringArray + return .#stringArray } operator fun component2(): CharArray { - return #charArray + return .#charArray } operator fun component3(): BooleanArray { - return #booleanArray + return .#booleanArray } operator fun component4(): ByteArray { - return #byteArray + return .#byteArray } operator fun component5(): ShortArray { - return #shortArray + return .#shortArray } operator fun component6(): IntArray { - return #intArray + return .#intArray } operator fun component7(): LongArray { - return #longArray + return .#longArray } operator fun component8(): FloatArray { - return #floatArray + return .#floatArray } operator fun component9(): DoubleArray { - return #doubleArray + return .#doubleArray } - fun copy(stringArray: Array = #stringArray, charArray: CharArray = #charArray, booleanArray: BooleanArray = #booleanArray, byteArray: ByteArray = #byteArray, shortArray: ShortArray = #shortArray, intArray: IntArray = #intArray, longArray: LongArray = #longArray, floatArray: FloatArray = #floatArray, doubleArray: DoubleArray = #doubleArray): Test1 { + fun copy(stringArray: Array = .#stringArray, charArray: CharArray = .#charArray, booleanArray: BooleanArray = .#booleanArray, byteArray: ByteArray = .#byteArray, shortArray: ShortArray = .#shortArray, intArray: IntArray = .#intArray, longArray: LongArray = .#longArray, floatArray: FloatArray = .#floatArray, doubleArray: DoubleArray = .#doubleArray): Test1 { return Test1(stringArray = stringArray, charArray = charArray, booleanArray = booleanArray, byteArray = byteArray, shortArray = shortArray, intArray = intArray, longArray = longArray, floatArray = floatArray, doubleArray = doubleArray) } override fun toString(): String { return "Test1(" + "stringArray=" + -dataClassArrayMemberToString(arg0 = #stringArray) + +dataClassArrayMemberToString(arg0 = .#stringArray) + ", " + "charArray=" + -dataClassArrayMemberToString(arg0 = #charArray) + +dataClassArrayMemberToString(arg0 = .#charArray) + ", " + "booleanArray=" + -dataClassArrayMemberToString(arg0 = #booleanArray) + +dataClassArrayMemberToString(arg0 = .#booleanArray) + ", " + "byteArray=" + -dataClassArrayMemberToString(arg0 = #byteArray) + +dataClassArrayMemberToString(arg0 = .#byteArray) + ", " + "shortArray=" + -dataClassArrayMemberToString(arg0 = #shortArray) + +dataClassArrayMemberToString(arg0 = .#shortArray) + ", " + "intArray=" + -dataClassArrayMemberToString(arg0 = #intArray) + +dataClassArrayMemberToString(arg0 = .#intArray) + ", " + "longArray=" + -dataClassArrayMemberToString(arg0 = #longArray) + +dataClassArrayMemberToString(arg0 = .#longArray) + ", " + "floatArray=" + -dataClassArrayMemberToString(arg0 = #floatArray) + +dataClassArrayMemberToString(arg0 = .#floatArray) + ", " + "doubleArray=" + -dataClassArrayMemberToString(arg0 = #doubleArray) + +dataClassArrayMemberToString(arg0 = .#doubleArray) + ")" } override fun hashCode(): Int { - var result: Int = dataClassArrayMemberHashCode(arg0 = #stringArray) - result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #charArray)) - result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #booleanArray)) - result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #byteArray)) - result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #shortArray)) - result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #intArray)) - result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #longArray)) - result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #floatArray)) - result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = #doubleArray)) + var result: Int = dataClassArrayMemberHashCode(arg0 = .#stringArray) + result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = .#charArray)) + result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = .#booleanArray)) + result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = .#byteArray)) + result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = .#shortArray)) + result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = .#intArray)) + result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = .#longArray)) + result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = .#floatArray)) + result = result.times(other = 31).plus(other = dataClassArrayMemberHashCode(arg0 = .#doubleArray)) return result } @@ -134,31 +134,31 @@ dataClassArrayMemberToString(arg0 = #doubleArray) + } val tmp0_other_with_cast: Test1 = other as Test1 when { - EQEQ(arg0 = #stringArray, arg1 = #stringArray).not() -> return false + EQEQ(arg0 = .#stringArray, arg1 = tmp0_other_with_cast.#stringArray).not() -> return false } when { - EQEQ(arg0 = #charArray, arg1 = #charArray).not() -> return false + EQEQ(arg0 = .#charArray, arg1 = tmp0_other_with_cast.#charArray).not() -> return false } when { - EQEQ(arg0 = #booleanArray, arg1 = #booleanArray).not() -> return false + EQEQ(arg0 = .#booleanArray, arg1 = tmp0_other_with_cast.#booleanArray).not() -> return false } when { - EQEQ(arg0 = #byteArray, arg1 = #byteArray).not() -> return false + EQEQ(arg0 = .#byteArray, arg1 = tmp0_other_with_cast.#byteArray).not() -> return false } when { - EQEQ(arg0 = #shortArray, arg1 = #shortArray).not() -> return false + EQEQ(arg0 = .#shortArray, arg1 = tmp0_other_with_cast.#shortArray).not() -> return false } when { - EQEQ(arg0 = #intArray, arg1 = #intArray).not() -> return false + EQEQ(arg0 = .#intArray, arg1 = tmp0_other_with_cast.#intArray).not() -> return false } when { - EQEQ(arg0 = #longArray, arg1 = #longArray).not() -> return false + EQEQ(arg0 = .#longArray, arg1 = tmp0_other_with_cast.#longArray).not() -> return false } when { - EQEQ(arg0 = #floatArray, arg1 = #floatArray).not() -> return false + EQEQ(arg0 = .#floatArray, arg1 = tmp0_other_with_cast.#floatArray).not() -> return false } when { - EQEQ(arg0 = #doubleArray, arg1 = #doubleArray).not() -> return false + EQEQ(arg0 = .#doubleArray, arg1 = tmp0_other_with_cast.#doubleArray).not() -> return false } return true } @@ -177,22 +177,22 @@ data class Test2 { get operator fun component1(): Array { - return #genericArray + return .#genericArray } - fun copy(genericArray: Array = #genericArray): Test2 { + fun copy(genericArray: Array = .#genericArray): Test2 { return Test2(genericArray = genericArray) } override fun toString(): String { return "Test2(" + "genericArray=" + -dataClassArrayMemberToString(arg0 = #genericArray) + +dataClassArrayMemberToString(arg0 = .#genericArray) + ")" } override fun hashCode(): Int { - return dataClassArrayMemberHashCode(arg0 = #genericArray) + return dataClassArrayMemberHashCode(arg0 = .#genericArray) } override operator fun equals(other: Any?): Boolean { @@ -204,7 +204,7 @@ dataClassArrayMemberToString(arg0 = #genericArray) + } val tmp0_other_with_cast: Test2 = other as Test2 when { - EQEQ(arg0 = #genericArray, arg1 = #genericArray).not() -> return false + EQEQ(arg0 = .#genericArray, arg1 = tmp0_other_with_cast.#genericArray).not() -> return false } return true } @@ -223,24 +223,24 @@ data class Test3 { get operator fun component1(): Array? { - return #anyArrayN + return .#anyArrayN } - fun copy(anyArrayN: Array? = #anyArrayN): Test3 { + fun copy(anyArrayN: Array? = .#anyArrayN): Test3 { return Test3(anyArrayN = anyArrayN) } override fun toString(): String { return "Test3(" + "anyArrayN=" + -dataClassArrayMemberToString(arg0 = #anyArrayN) + +dataClassArrayMemberToString(arg0 = .#anyArrayN) + ")" } override fun hashCode(): Int { return when { - EQEQ(arg0 = #anyArrayN, arg1 = null) -> 0 - true -> dataClassArrayMemberHashCode(arg0 = #anyArrayN) + EQEQ(arg0 = .#anyArrayN, arg1 = null) -> 0 + true -> dataClassArrayMemberHashCode(arg0 = .#anyArrayN) } } @@ -253,7 +253,7 @@ dataClassArrayMemberToString(arg0 = #anyArrayN) + } val tmp0_other_with_cast: Test3 = other as Test3 when { - EQEQ(arg0 = #anyArrayN, arg1 = #anyArrayN).not() -> return false + EQEQ(arg0 = .#anyArrayN, arg1 = tmp0_other_with_cast.#anyArrayN).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/classes/dataClasses.kt.txt b/compiler/testData/ir/irText/classes/dataClasses.kt.txt index 98d1074bfa3..4a714577279 100644 --- a/compiler/testData/ir/irText/classes/dataClasses.kt.txt +++ b/compiler/testData/ir/irText/classes/dataClasses.kt.txt @@ -18,38 +18,38 @@ data class Test1 { get operator fun component1(): Int { - return #x + return .#x } operator fun component2(): String { - return #y + return .#y } operator fun component3(): Any { - return #z + return .#z } - fun copy(x: Int = #x, y: String = #y, z: Any = #z): Test1 { + fun copy(x: Int = .#x, y: String = .#y, z: Any = .#z): Test1 { return Test1(x = x, y = y, z = z) } override fun toString(): String { return "Test1(" + "x=" + -#x + +.#x + ", " + "y=" + -#y + +.#y + ", " + "z=" + -#z + +.#z + ")" } override fun hashCode(): Int { - var result: Int = #x.hashCode() - result = result.times(other = 31).plus(other = #y.hashCode()) - result = result.times(other = 31).plus(other = #z.hashCode()) + var result: Int = .#x.hashCode() + result = result.times(other = 31).plus(other = .#y.hashCode()) + result = result.times(other = 31).plus(other = .#z.hashCode()) return result } @@ -62,13 +62,13 @@ data class Test1 { } val tmp0_other_with_cast: Test1 = other as Test1 when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } when { - EQEQ(arg0 = #y, arg1 = #y).not() -> return false + EQEQ(arg0 = .#y, arg1 = tmp0_other_with_cast.#y).not() -> return false } when { - EQEQ(arg0 = #z, arg1 = #z).not() -> return false + EQEQ(arg0 = .#z, arg1 = tmp0_other_with_cast.#z).not() -> return false } return true } @@ -87,24 +87,24 @@ data class Test2 { get operator fun component1(): Any? { - return #x + return .#x } - fun copy(x: Any? = #x): Test2 { + fun copy(x: Any? = .#x): Test2 { return Test2(x = x) } override fun toString(): String { return "Test2(" + "x=" + -#x + +.#x + ")" } override fun hashCode(): Int { return when { - EQEQ(arg0 = #x, arg1 = null) -> 0 - true -> #x.hashCode() + EQEQ(arg0 = .#x, arg1 = null) -> 0 + true -> .#x.hashCode() } } @@ -117,7 +117,7 @@ data class Test2 { } val tmp0_other_with_cast: Test2 = other as Test2 when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } return true } @@ -148,51 +148,51 @@ data class Test3 { get operator fun component1(): Double { - return #d + return .#d } operator fun component2(): Double? { - return #dn + return .#dn } operator fun component3(): Float { - return #f + return .#f } operator fun component4(): Float? { - return #df + return .#df } - fun copy(d: Double = #d, dn: Double? = #dn, f: Float = #f, df: Float? = #df): Test3 { + fun copy(d: Double = .#d, dn: Double? = .#dn, f: Float = .#f, df: Float? = .#df): Test3 { return Test3(d = d, dn = dn, f = f, df = df) } override fun toString(): String { return "Test3(" + "d=" + -#d + +.#d + ", " + "dn=" + -#dn + +.#dn + ", " + "f=" + -#f + +.#f + ", " + "df=" + -#df + +.#df + ")" } override fun hashCode(): Int { - var result: Int = #d.hashCode() + var result: Int = .#d.hashCode() result = result.times(other = 31).plus(other = when { - EQEQ(arg0 = #dn, arg1 = null) -> 0 - true -> #dn.hashCode() + EQEQ(arg0 = .#dn, arg1 = null) -> 0 + true -> .#dn.hashCode() }) - result = result.times(other = 31).plus(other = #f.hashCode()) + result = result.times(other = 31).plus(other = .#f.hashCode()) result = result.times(other = 31).plus(other = when { - EQEQ(arg0 = #df, arg1 = null) -> 0 - true -> #df.hashCode() + EQEQ(arg0 = .#df, arg1 = null) -> 0 + true -> .#df.hashCode() }) return result } @@ -206,16 +206,16 @@ data class Test3 { } val tmp0_other_with_cast: Test3 = other as Test3 when { - EQEQ(arg0 = #d, arg1 = #d).not() -> return false + EQEQ(arg0 = .#d, arg1 = tmp0_other_with_cast.#d).not() -> return false } when { - EQEQ(arg0 = #dn, arg1 = #dn).not() -> return false + EQEQ(arg0 = .#dn, arg1 = tmp0_other_with_cast.#dn).not() -> return false } when { - EQEQ(arg0 = #f, arg1 = #f).not() -> return false + EQEQ(arg0 = .#f, arg1 = tmp0_other_with_cast.#f).not() -> return false } when { - EQEQ(arg0 = #df, arg1 = #df).not() -> return false + EQEQ(arg0 = .#df, arg1 = tmp0_other_with_cast.#df).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/classes/dataClassesGeneric.kt.txt b/compiler/testData/ir/irText/classes/dataClassesGeneric.kt.txt index c8c07bfc416..10bc1d47fcf 100644 --- a/compiler/testData/ir/irText/classes/dataClassesGeneric.kt.txt +++ b/compiler/testData/ir/irText/classes/dataClassesGeneric.kt.txt @@ -10,24 +10,24 @@ data class Test1 { get operator fun component1(): T { - return #x + return .#x } - fun copy(x: T = #x): Test1 { + fun copy(x: T = .#x): Test1 { return Test1(x = x) } override fun toString(): String { return "Test1(" + "x=" + -#x + +.#x + ")" } override fun hashCode(): Int { return when { - EQEQ(arg0 = #x, arg1 = null) -> 0 - true -> #x.hashCode() + EQEQ(arg0 = .#x, arg1 = null) -> 0 + true -> .#x.hashCode() } } @@ -40,7 +40,7 @@ data class Test1 { } val tmp0_other_with_cast: Test1 = other as Test1 when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } return true } @@ -59,22 +59,22 @@ data class Test2 { get operator fun component1(): T { - return #x + return .#x } - fun copy(x: T = #x): Test2 { + fun copy(x: T = .#x): Test2 { return Test2(x = x) } override fun toString(): String { return "Test2(" + "x=" + -#x + +.#x + ")" } override fun hashCode(): Int { - return #x.hashCode() + return .#x.hashCode() } override operator fun equals(other: Any?): Boolean { @@ -86,7 +86,7 @@ data class Test2 { } val tmp0_other_with_cast: Test2 = other as Test2 when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } return true } @@ -105,22 +105,22 @@ data class Test3 { get operator fun component1(): List { - return #x + return .#x } - fun copy(x: List = #x): Test3 { + fun copy(x: List = .#x): Test3 { return Test3(x = x) } override fun toString(): String { return "Test3(" + "x=" + -#x + +.#x + ")" } override fun hashCode(): Int { - return #x.hashCode() + return .#x.hashCode() } override operator fun equals(other: Any?): Boolean { @@ -132,7 +132,7 @@ data class Test3 { } val tmp0_other_with_cast: Test3 = other as Test3 when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } return true } @@ -151,22 +151,22 @@ data class Test4 { get operator fun component1(): List { - return #x + return .#x } - fun copy(x: List = #x): Test4 { + fun copy(x: List = .#x): Test4 { return Test4(x = x) } override fun toString(): String { return "Test4(" + "x=" + -#x + +.#x + ")" } override fun hashCode(): Int { - return #x.hashCode() + return .#x.hashCode() } override operator fun equals(other: Any?): Boolean { @@ -178,7 +178,7 @@ data class Test4 { } val tmp0_other_with_cast: Test4 = other as Test4 when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/classes/delegatedGenericImplementation.kt.txt b/compiler/testData/ir/irText/classes/delegatedGenericImplementation.kt.txt index 1a80e772181..ff81bef42ff 100644 --- a/compiler/testData/ir/irText/classes/delegatedGenericImplementation.kt.txt +++ b/compiler/testData/ir/irText/classes/delegatedGenericImplementation.kt.txt @@ -18,20 +18,20 @@ class Test1 : IBase { private /*final field*/ val $$delegate_0: IBase = i override fun foo(a: E, b: B) { - #$$delegate_0.foo(a = a, b = b) + .#$$delegate_0.foo(a = a, b = b) } override val C.id: Map? override get(): Map? { - return (#$$delegate_0, ).() + return (.#$$delegate_0, ).() } override var List.x: D? override get(): D? { - return (#$$delegate_0, ).() + return (.#$$delegate_0, ).() } override set(: D?) { - (#$$delegate_0, ).( = ) + (.#$$delegate_0, ).( = ) } } @@ -50,20 +50,20 @@ class Test2 : IBase { private /*final field*/ val $$delegate_0: IBase = j override fun foo(a: String, b: B) { - #$$delegate_0.foo(a = a, b = b) + .#$$delegate_0.foo(a = a, b = b) } override val C.id: Map? override get(): Map? { - return (#$$delegate_0, ).() + return (.#$$delegate_0, ).() } override var List.x: D? override get(): D? { - return (#$$delegate_0, ).() + return (.#$$delegate_0, ).() } override set(: D?) { - (#$$delegate_0, ).( = ) + (.#$$delegate_0, ).( = ) } } diff --git a/compiler/testData/ir/irText/classes/delegatedImplementation.kt.txt b/compiler/testData/ir/irText/classes/delegatedImplementation.kt.txt index 94b2b17f666..04bc27d486e 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementation.kt.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementation.kt.txt @@ -86,15 +86,15 @@ class Test1 : IBase { private /*final field*/ val $$delegate_0: BaseImpl = BaseImpl override fun bar(): Int { - return #$$delegate_0.bar() + return .#$$delegate_0.bar() } override fun foo(x: Int, s: String) { - #$$delegate_0.foo(x = x, s = s) + .#$$delegate_0.foo(x = x, s = s) } override fun String.qux() { - (#$$delegate_0, ).qux() + (.#$$delegate_0, ).qux() } } @@ -108,42 +108,42 @@ class Test2 : IBase, IOther { private /*final field*/ val $$delegate_0: BaseImpl = BaseImpl override fun bar(): Int { - return #$$delegate_0.bar() + return .#$$delegate_0.bar() } override fun foo(x: Int, s: String) { - #$$delegate_0.foo(x = x, s = s) + .#$$delegate_0.foo(x = x, s = s) } override fun String.qux() { - (#$$delegate_0, ).qux() + (.#$$delegate_0, ).qux() } private /*final field*/ val $$delegate_1: IOther = otherImpl(x0 = "", y0 = 42) override val Byte.z1: Int override get(): Int { - return (#$$delegate_1, ).() + return (.#$$delegate_1, ).() } override val x: String override get(): String { - return #$$delegate_1.() + return .#$$delegate_1.() } override var Byte.z2: Int override get(): Int { - return (#$$delegate_1, ).() + return (.#$$delegate_1, ).() } override set(: Int) { - (#$$delegate_1, ).( = ) + (.#$$delegate_1, ).( = ) } override var y: Int override get(): Int { - return #$$delegate_1.() + return .#$$delegate_1.() } override set(: Int) { - #$$delegate_1.( = ) + .#$$delegate_1.( = ) } } diff --git a/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.kt.txt b/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.kt.txt index d4e4ee378be..8a6c8b57f54 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.kt.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.kt.txt @@ -11,28 +11,28 @@ class Test : J { @NotNull() override fun returnNotNull(): @EnhancedNullability String { - return #j.returnNotNull() + return .#j.returnNotNull() } @Nullable() override fun returnNullable(): @EnhancedNullability String? { - return #j.returnNullable() + return .#j.returnNullable() } override fun returnsFlexible(): @FlexibleNullability String? { - return #j.returnsFlexible() + return .#j.returnsFlexible() } override fun takeFlexible(x: @FlexibleNullability String?) { - #j.takeFlexible(x = x) + .#j.takeFlexible(x = x) } override fun takeNotNull(x: @EnhancedNullability String) { - #j.takeNotNull(x = x) + .#j.takeNotNull(x = x) } override fun takeNullable(x: @EnhancedNullability String?) { - #j.takeNullable(x = x) + .#j.takeNullable(x = x) } } diff --git a/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.kt.txt b/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.kt.txt index 9ce32da6eaf..5cab352d2a5 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.kt.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.kt.txt @@ -28,7 +28,7 @@ class C : IFooBar { private /*final field*/ val $$delegate_0: FooBarImpl = FooBarImpl override fun foo() { - #$$delegate_0.foo() + .#$$delegate_0.foo() } override fun bar() { diff --git a/compiler/testData/ir/irText/classes/enum.kt.txt b/compiler/testData/ir/irText/classes/enum.kt.txt index 1b1f789592b..c2ab0c121b2 100644 --- a/compiler/testData/ir/irText/classes/enum.kt.txt +++ b/compiler/testData/ir/irText/classes/enum.kt.txt @@ -104,7 +104,7 @@ abstract enum class TestEnum4 : Enum { get init { - #z = .() + .#z = .() } override fun foo() { diff --git a/compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt.txt b/compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt.txt index 1eb263c4044..2e75794e4fd 100644 --- a/compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt.txt +++ b/compiler/testData/ir/irText/classes/enumWithMultipleCtors.kt.txt @@ -33,14 +33,14 @@ open enum class A : Enum { super/*Enum*/() /* () */ - #prop1 = arg + .#prop1 = arg } private constructor() { super/*Enum*/() /* () */ - #prop1 = "default" + .#prop1 = "default" .( = "empty") } diff --git a/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.kt.txt b/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.kt.txt index d09ee5936bb..380453eb62e 100644 --- a/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.kt.txt +++ b/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.kt.txt @@ -56,7 +56,7 @@ class TestJFoo : IFoo { private /*final field*/ val $$delegate_0: JFoo = JFoo() override fun foo(): String { - return #$$delegate_0.foo() /*!! String */ + return .#$$delegate_0.foo() /*!! String */ } } @@ -70,7 +70,7 @@ class TestK1 : IFoo { private /*final field*/ val $$delegate_0: K1 = K1() override fun foo(): String { - return #$$delegate_0.foo() /*!! String */ + return .#$$delegate_0.foo() /*!! String */ } } @@ -84,7 +84,7 @@ class TestK2 : IFoo { private /*final field*/ val $$delegate_0: K2 = K2() override fun foo(): String { - return #$$delegate_0.foo() + return .#$$delegate_0.foo() } } @@ -98,7 +98,7 @@ class TestK3 : IFoo { private /*final field*/ val $$delegate_0: K3 = K3() override fun foo(): String { - return #$$delegate_0.foo() + return .#$$delegate_0.foo() } } @@ -112,7 +112,7 @@ class TestK4 : IFoo { private /*final field*/ val $$delegate_0: K4 = K4() override fun foo(): String { - return #$$delegate_0.foo() /*!! String */ + return .#$$delegate_0.foo() /*!! String */ } } diff --git a/compiler/testData/ir/irText/classes/initVal.kt.txt b/compiler/testData/ir/irText/classes/initVal.kt.txt index 8dc59032582..b421bbf410b 100644 --- a/compiler/testData/ir/irText/classes/initVal.kt.txt +++ b/compiler/testData/ir/irText/classes/initVal.kt.txt @@ -35,7 +35,7 @@ class TestInitValInInitBlock { get init { - #x = 0 + .#x = 0 } } diff --git a/compiler/testData/ir/irText/classes/initValInLambda.kt.txt b/compiler/testData/ir/irText/classes/initValInLambda.kt.txt index debd05f42f1..3d4f99039ad 100644 --- a/compiler/testData/ir/irText/classes/initValInLambda.kt.txt +++ b/compiler/testData/ir/irText/classes/initValInLambda.kt.txt @@ -10,7 +10,7 @@ class TestInitValInLambdaCalledOnce { init { 1.run(block = local fun Int.() { - #x = 0 + .#x = 0 } ) } diff --git a/compiler/testData/ir/irText/classes/initVar.kt.txt b/compiler/testData/ir/irText/classes/initVar.kt.txt index a997b01012d..0dfe1c66952 100644 --- a/compiler/testData/ir/irText/classes/initVar.kt.txt +++ b/compiler/testData/ir/irText/classes/initVar.kt.txt @@ -54,7 +54,7 @@ class TestInitVarWithCustomSetter { field = 0 get set(value: Int) { - #x = value + .#x = value } } @@ -63,7 +63,7 @@ class TestInitVarWithCustomSetterWithExplicitCtor { var x: Int get set(value: Int) { - #x = value + .#x = value } init { @@ -82,7 +82,7 @@ class TestInitVarWithCustomSetterInCtor { var x: Int get set(value: Int) { - #x = value + .#x = value } constructor() { diff --git a/compiler/testData/ir/irText/classes/inlineClass.kt.txt b/compiler/testData/ir/irText/classes/inlineClass.kt.txt index 2f0e8418990..fcaeb190100 100644 --- a/compiler/testData/ir/irText/classes/inlineClass.kt.txt +++ b/compiler/testData/ir/irText/classes/inlineClass.kt.txt @@ -12,12 +12,12 @@ inline class Test { override fun toString(): String { return "Test(" + "x=" + -#x + +.#x + ")" } override fun hashCode(): Int { - return #x.hashCode() + return .#x.hashCode() } override operator fun equals(other: Any?): Boolean { @@ -26,7 +26,7 @@ inline class Test { } val tmp0_other_with_cast: Test = other as Test when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.kt.txt b/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.kt.txt index 7b1babdc1c2..cc443e40114 100644 --- a/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.kt.txt +++ b/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.kt.txt @@ -33,12 +33,12 @@ inline class IC { override fun toString(): String { return "IC(" + "c=" + -#c + +.#c + ")" } override fun hashCode(): Int { - return #c.hashCode() + return .#c.hashCode() } override operator fun equals(other: Any?): Boolean { @@ -47,7 +47,7 @@ inline class IC { } val tmp0_other_with_cast: IC = other as IC when { - EQEQ(arg0 = #c, arg1 = #c).not() -> return false + EQEQ(arg0 = .#c, arg1 = tmp0_other_with_cast.#c).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/classes/kt31649.kt.txt b/compiler/testData/ir/irText/classes/kt31649.kt.txt index 29275573344..09853e02070 100644 --- a/compiler/testData/ir/irText/classes/kt31649.kt.txt +++ b/compiler/testData/ir/irText/classes/kt31649.kt.txt @@ -10,24 +10,24 @@ data class TestData { get operator fun component1(): Nothing? { - return #nn + return .#nn } - fun copy(nn: Nothing? = #nn): TestData { + fun copy(nn: Nothing? = .#nn): TestData { return TestData(nn = nn) } override fun toString(): String { return "TestData(" + "nn=" + -#nn + +.#nn + ")" } override fun hashCode(): Int { return when { - EQEQ(arg0 = #nn, arg1 = null) -> 0 - true -> #nn.hashCode() + EQEQ(arg0 = .#nn, arg1 = null) -> 0 + true -> .#nn.hashCode() } } @@ -40,7 +40,7 @@ data class TestData { } val tmp0_other_with_cast: TestData = other as TestData when { - EQEQ(arg0 = #nn, arg1 = #nn).not() -> return false + EQEQ(arg0 = .#nn, arg1 = tmp0_other_with_cast.#nn).not() -> return false } return true } @@ -61,14 +61,14 @@ inline class TestInline { override fun toString(): String { return "TestInline(" + "nn=" + -#nn + +.#nn + ")" } override fun hashCode(): Int { return when { - EQEQ(arg0 = #nn, arg1 = null) -> 0 - true -> #nn.hashCode() + EQEQ(arg0 = .#nn, arg1 = null) -> 0 + true -> .#nn.hashCode() } } @@ -78,7 +78,7 @@ inline class TestInline { } val tmp0_other_with_cast: TestInline = other as TestInline when { - EQEQ(arg0 = #nn, arg1 = #nn).not() -> return false + EQEQ(arg0 = .#nn, arg1 = tmp0_other_with_cast.#nn).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.kt.txt b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.kt.txt index a26997bb63a..e890a37861a 100644 --- a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.kt.txt +++ b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.kt.txt @@ -13,22 +13,22 @@ data class A { get operator fun component1(): @ExtensionFunctionType Function2 { - return #runA + return .#runA } - fun copy(runA: @ExtensionFunctionType Function2 = #runA): A { + fun copy(runA: @ExtensionFunctionType Function2 = .#runA): A { return A(runA = runA) } override fun toString(): String { return "A(" + "runA=" + -#runA + +.#runA + ")" } override fun hashCode(): Int { - return #runA.hashCode() + return .#runA.hashCode() } override operator fun equals(other: Any?): Boolean { @@ -40,7 +40,7 @@ data class A { } val tmp0_other_with_cast: A = other as A when { - EQEQ(arg0 = #runA, arg1 = #runA).not() -> return false + EQEQ(arg0 = .#runA, arg1 = tmp0_other_with_cast.#runA).not() -> return false } return true } @@ -70,22 +70,22 @@ data class B { get operator fun component1(): Any { - return #x + return .#x } - fun copy(x: Any = #x): B { + fun copy(x: Any = .#x): B { return B(x = x) } override fun toString(): String { return "B(" + "x=" + -#x + +.#x + ")" } override fun hashCode(): Int { - return #x.hashCode() + return .#x.hashCode() } override operator fun equals(other: Any?): Boolean { @@ -97,7 +97,7 @@ data class B { } val tmp0_other_with_cast: B = other as B when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/classes/objectWithInitializers.kt.txt b/compiler/testData/ir/irText/classes/objectWithInitializers.kt.txt index 2d07b4d6dd5..b70e9b78e52 100644 --- a/compiler/testData/ir/irText/classes/objectWithInitializers.kt.txt +++ b/compiler/testData/ir/irText/classes/objectWithInitializers.kt.txt @@ -22,7 +22,7 @@ object Test : Base { get init { - #y = .() + .#y = .() } } diff --git a/compiler/testData/ir/irText/classes/primaryConstructor.kt.txt b/compiler/testData/ir/irText/classes/primaryConstructor.kt.txt index 60c21475f3b..2e4cfbda380 100644 --- a/compiler/testData/ir/irText/classes/primaryConstructor.kt.txt +++ b/compiler/testData/ir/irText/classes/primaryConstructor.kt.txt @@ -47,7 +47,7 @@ class Test3 { get init { - #x = x + .#x = x } } diff --git a/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.kt.txt b/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.kt.txt index a31ec922d9f..48bdc9f3ebb 100644 --- a/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.kt.txt +++ b/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.kt.txt @@ -25,7 +25,7 @@ class TestInitBlock : Base { get init { - #x = 0 + .#x = 0 } constructor() { diff --git a/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.kt.txt b/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.kt.txt index dd685ea127e..0cab97fc9e0 100644 --- a/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.kt.txt +++ b/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.kt.txt @@ -29,22 +29,22 @@ class DFoo : IFoo { private /*final field*/ val $$delegate_0: IFoo = d @Ann override fun String.testExtFun() { - (#$$delegate_0, ).testExtFun() + (.#$$delegate_0, ).testExtFun() } @Ann override fun testFun() { - #$$delegate_0.testFun() + .#$$delegate_0.testFun() } override val String.testExtVal: String override get(): String { - return (#$$delegate_0, ).() + return (.#$$delegate_0, ).() } override val testVal: String override get(): String { - return #$$delegate_0.() + return .#$$delegate_0.() } } diff --git a/compiler/testData/ir/irText/declarations/classLevelProperties.kt.txt b/compiler/testData/ir/irText/declarations/classLevelProperties.kt.txt index cdc06bc23e6..1b37f10bbab 100644 --- a/compiler/testData/ir/irText/declarations/classLevelProperties.kt.txt +++ b/compiler/testData/ir/irText/declarations/classLevelProperties.kt.txt @@ -23,7 +23,7 @@ class C { field = 1 get set(value: Int) { - #test4 = value + .#test4 = value } var test5: Int @@ -41,16 +41,16 @@ class C { } ) get(): Int { - return #test7$delegate.getValue(thisRef = , property = ::test7) + return .#test7$delegate.getValue(thisRef = , property = ::test7) } var test8: Int /* by */ field = hashMapOf() get(): Int { - return #test8$delegate.getValue(thisRef = , property = ::test8) + return .#test8$delegate.getValue(thisRef = , property = ::test8) } set(: Int) { - return #test8$delegate.setValue(thisRef = , property = ::test8, value = ) + return .#test8$delegate.setValue(thisRef = , property = ::test8, value = ) } } diff --git a/compiler/testData/ir/irText/declarations/delegatedProperties.kt.txt b/compiler/testData/ir/irText/declarations/delegatedProperties.kt.txt index e64cbcacc1a..bc3e76d46a5 100644 --- a/compiler/testData/ir/irText/declarations/delegatedProperties.kt.txt +++ b/compiler/testData/ir/irText/declarations/delegatedProperties.kt.txt @@ -24,16 +24,16 @@ class C { } ) get(): Int { - return #test2$delegate.getValue(thisRef = , property = ::test2) + return .#test2$delegate.getValue(thisRef = , property = ::test2) } var test3: Any /* by */ field = .() get(): Any { - return #test3$delegate.getValue(thisRef = , property = ::test3) + return .#test3$delegate.getValue(thisRef = , property = ::test3) } set(: Any) { - return #test3$delegate.setValue(thisRef = , property = ::test3, value = ) + return .#test3$delegate.setValue(thisRef = , property = ::test3, value = ) } } diff --git a/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt.txt b/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt.txt index 87d5028821e..499310e63d3 100644 --- a/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt.txt +++ b/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt.txt @@ -12,12 +12,12 @@ inline class IT { override fun toString(): String { return "IT(" + "x=" + -#x + +.#x + ")" } override fun hashCode(): Int { - return #x.hashCode() + return .#x.hashCode() } override operator fun equals(other: Any?): Boolean { @@ -26,7 +26,7 @@ inline class IT { } val tmp0_other_with_cast: IT = other as IT when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } return true } @@ -92,12 +92,12 @@ inline class InlineMutableSet : MutableSet { override fun toString(): String { return "InlineMutableSet(" + "ms=" + -#ms + +.#ms + ")" } override fun hashCode(): Int { - return #ms.hashCode() + return .#ms.hashCode() } override operator fun equals(other: Any?): Boolean { @@ -106,7 +106,7 @@ inline class InlineMutableSet : MutableSet { } val tmp0_other_with_cast: InlineMutableSet = other as InlineMutableSet when { - EQEQ(arg0 = #ms, arg1 = #ms).not() -> return false + EQEQ(arg0 = .#ms, arg1 = tmp0_other_with_cast.#ms).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/declarations/kt29833.kt.txt b/compiler/testData/ir/irText/declarations/kt29833.kt.txt index fff97c14f7e..2d7eaf44ddf 100644 --- a/compiler/testData/ir/irText/declarations/kt29833.kt.txt +++ b/compiler/testData/ir/irText/declarations/kt29833.kt.txt @@ -12,7 +12,7 @@ object Definitions { get val ktValue: String - field = #CONSTANT + field = super.#CONSTANT get } diff --git a/compiler/testData/ir/irText/declarations/kt35550.kt.txt b/compiler/testData/ir/irText/declarations/kt35550.kt.txt index 66a1472b519..2b8de3d0ff5 100644 --- a/compiler/testData/ir/irText/declarations/kt35550.kt.txt +++ b/compiler/testData/ir/irText/declarations/kt35550.kt.txt @@ -16,7 +16,7 @@ class A : I { private /*final field*/ val $$delegate_0: I = i override val T.id: T override get(): T { - return (#$$delegate_0, ).() + return (.#$$delegate_0, ).() } } diff --git a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt.txt b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt.txt index e2e22c91071..5578254723f 100644 --- a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt.txt +++ b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt.txt @@ -14,33 +14,33 @@ data class Test { get operator fun component1(): T { - return #x + return .#x } operator fun component2(): String { - return #y + return .#y } - fun copy(x: T = #x, y: String = #y): Test { + fun copy(x: T = .#x, y: String = .#y): Test { return Test(x = x, y = y) } override fun toString(): String { return "Test(" + "x=" + -#x + +.#x + ", " + "y=" + -#y + +.#y + ")" } override fun hashCode(): Int { var result: Int = when { - EQEQ(arg0 = #x, arg1 = null) -> 0 - true -> #x.hashCode() + EQEQ(arg0 = .#x, arg1 = null) -> 0 + true -> .#x.hashCode() } - result = result.times(other = 31).plus(other = #y.hashCode()) + result = result.times(other = 31).plus(other = .#y.hashCode()) return result } @@ -53,10 +53,10 @@ data class Test { } val tmp0_other_with_cast: Test = other as Test when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } when { - EQEQ(arg0 = #y, arg1 = #y).not() -> return false + EQEQ(arg0 = .#y, arg1 = tmp0_other_with_cast.#y).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.kt.txt b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.kt.txt index f5b15febf27..df3fbee5830 100644 --- a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.kt.txt +++ b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.kt.txt @@ -16,16 +16,16 @@ class Test : IBase { private /*final field*/ val $$delegate_0: IBase = impl override fun qux(t: TT, x: X) { - #$$delegate_0.qux(t = t, x = x) + .#$$delegate_0.qux(t = t, x = x) } override fun foo(x: Int) { - #$$delegate_0.foo(x = x) + .#$$delegate_0.foo(x = x) } override val bar: Int override get(): Int { - return #$$delegate_0.() + return .#$$delegate_0.() } } diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/member.kt.txt b/compiler/testData/ir/irText/declarations/provideDelegate/member.kt.txt index 8e117b1728e..9815847b52c 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/member.kt.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/member.kt.txt @@ -42,7 +42,7 @@ class Host { val testMember: String /* by */ field = DelegateProvider(value = "OK").provideDelegate(thisRef = , property = ::testMember) get(): String { - return #testMember$delegate.getValue(thisRef = , property = ::testMember) + return .#testMember$delegate.getValue(thisRef = , property = ::testMember) } } diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.kt.txt b/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.kt.txt index 65135b040d1..950932fcf81 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.kt.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.kt.txt @@ -29,7 +29,7 @@ object Host { val String.plusK: String /* by */ field = (, "K").provideDelegate(host = , p = ::plusK) get(): String { - return #plusK$delegate.getValue(receiver = , p = ::plusK) + return .#plusK$delegate.getValue(receiver = , p = ::plusK) } val ok: String diff --git a/compiler/testData/ir/irText/expressions/coercionToUnit.kt.txt b/compiler/testData/ir/irText/expressions/coercionToUnit.kt.txt index 1113aec2de0..bdfbeaadb66 100644 --- a/compiler/testData/ir/irText/expressions/coercionToUnit.kt.txt +++ b/compiler/testData/ir/irText/expressions/coercionToUnit.kt.txt @@ -11,14 +11,14 @@ fun test2(mc: MutableCollection) { fun test3() { { // BLOCK - val tmp0_safe_receiver: @FlexibleNullability PrintStream? = #out + val tmp0_safe_receiver: @FlexibleNullability PrintStream? = super.#out when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null true -> tmp0_safe_receiver /*!! PrintStream */.println(p0 = "Hello,") } } /*~> Unit */ { // BLOCK - val tmp1_safe_receiver: @FlexibleNullability PrintStream? = #out + val tmp1_safe_receiver: @FlexibleNullability PrintStream? = super.#out when { EQEQ(arg0 = tmp1_safe_receiver, arg1 = null) -> null true -> tmp1_safe_receiver /*!! PrintStream */.println(p0 = "world!") diff --git a/compiler/testData/ir/irText/expressions/equals.kt.txt b/compiler/testData/ir/irText/expressions/equals.kt.txt index ede412500df..cd4ce6f7a62 100644 --- a/compiler/testData/ir/irText/expressions/equals.kt.txt +++ b/compiler/testData/ir/irText/expressions/equals.kt.txt @@ -7,10 +7,10 @@ fun testEquals(a: Int, b: Int): Boolean { } fun testJEqeqNull(): Boolean { - return EQEQ(arg0 = #INT_NULL, arg1 = null) + return EQEQ(arg0 = super.#INT_NULL, arg1 = null) } fun testJEqualsNull(): Boolean { - return #INT_NULL /*!! Int */.equals(other = null) + return super.#INT_NULL /*!! Int */.equals(other = null) } diff --git a/compiler/testData/ir/irText/expressions/jvmFieldWithIntersectionTypes.kt.txt b/compiler/testData/ir/irText/expressions/jvmFieldWithIntersectionTypes.kt.txt index a69a9646d20..4a946701b51 100644 --- a/compiler/testData/ir/irText/expressions/jvmFieldWithIntersectionTypes.kt.txt +++ b/compiler/testData/ir/irText/expressions/jvmFieldWithIntersectionTypes.kt.txt @@ -54,15 +54,15 @@ fun test(b: Boolean) { b -> d1 true -> d2 } - #f = 42 - #f /*~> Unit */ + k /*as JFieldOwner */super.#f = 42 + k /*as JFieldOwner */super.#f /*~> Unit */ val md1: DerivedThroughMid1 = DerivedThroughMid1() val md2: DerivedThroughMid2 = DerivedThroughMid2() val mk: Any = when { b -> md1 true -> md2 } - #f = 44 - #f /*~> Unit */ + mk /*as Mid */super.#f = 44 + mk /*as Mid */super.#f /*~> Unit */ } diff --git a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.kt.txt b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.kt.txt index 9e774c01faf..1be0f30bbeb 100644 --- a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.kt.txt +++ b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.kt.txt @@ -6,15 +6,15 @@ class Derived : Base { } init { - #value = 0 + super.#value = 0 } fun getValue(): Int { - return #value + return super.#value } fun setValue(value: Int) { - #value = value + super.#value = value } } diff --git a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.kt.txt b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.kt.txt index 8e2768d8ae4..81f61c1123d 100644 --- a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.kt.txt +++ b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.kt.txt @@ -1,14 +1,14 @@ fun testFun() { - #out /*!! PrintStream */.println(p0 = "testFun") + super.#out /*!! PrintStream */.println(p0 = "testFun") } var testProp: Any get(): Any { - #out /*!! PrintStream */.println(p0 = "testProp/get") + super.#out /*!! PrintStream */.println(p0 = "testProp/get") return 42 } set(value: Any) { - #out /*!! PrintStream */.println(p0 = "testProp/set") + super.#out /*!! PrintStream */.println(p0 = "testProp/set") } class TestClass { @@ -21,14 +21,14 @@ class TestClass { val test: Int field = when { true -> { // BLOCK - #out /*!! PrintStream */.println(p0 = "TestClass/test") + super.#out /*!! PrintStream */.println(p0 = "TestClass/test") 42 } } get init { - #out /*!! PrintStream */.println(p0 = "TestClass/init") + super.#out /*!! PrintStream */.println(p0 = "TestClass/init") } } diff --git a/compiler/testData/ir/irText/expressions/kt16904.kt.txt b/compiler/testData/ir/irText/expressions/kt16904.kt.txt index a8c8a13cc4c..d58a73954f3 100644 --- a/compiler/testData/ir/irText/expressions/kt16904.kt.txt +++ b/compiler/testData/ir/irText/expressions/kt16904.kt.txt @@ -53,7 +53,7 @@ class Test2 : J { } init { - #field = 42 + super.#field = 42 } } diff --git a/compiler/testData/ir/irText/expressions/kt37570.kt.txt b/compiler/testData/ir/irText/expressions/kt37570.kt.txt index 68d8602f76f..9aaad6bc15a 100644 --- a/compiler/testData/ir/irText/expressions/kt37570.kt.txt +++ b/compiler/testData/ir/irText/expressions/kt37570.kt.txt @@ -14,7 +14,7 @@ class A { init { a().apply(block = local fun String.() { - #b = + .#b = } ) /*~> Unit */ } diff --git a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.kt.txt b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.kt.txt index 9bc7b6d8090..f9323b93a52 100644 --- a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.kt.txt +++ b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.kt.txt @@ -8,7 +8,7 @@ class Derived : Base { fun setValue(v: Any) { when { v is String -> { // BLOCK - #value = v /*as String */ + super.#value = v /*as String */ } } } diff --git a/compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt.txt b/compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt.txt index 893046067fa..dd324538d32 100644 --- a/compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt.txt +++ b/compiler/testData/ir/irText/expressions/temporaryInInitBlock.kt.txt @@ -9,7 +9,7 @@ class C { get init { - #s = { // BLOCK + .#s = { // BLOCK val tmp0_safe_receiver: Any? = x when { EQEQ(arg0 = tmp0_safe_receiver, arg1 = null) -> null diff --git a/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.kt.txt b/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.kt.txt index 7ba2c787799..e9bbd371094 100644 --- a/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.kt.txt +++ b/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.kt.txt @@ -7,48 +7,48 @@ class Impl : A, B { private /*final field*/ val $$delegate_0: B = b override fun add(element: @FlexibleNullability String?): Boolean { - return #$$delegate_0.add(element = element) + return .#$$delegate_0.add(element = element) } override fun addAll(elements: Collection<@FlexibleNullability String?>): Boolean { - return #$$delegate_0.addAll(elements = elements) + return .#$$delegate_0.addAll(elements = elements) } override fun clear() { - #$$delegate_0.clear() + .#$$delegate_0.clear() } override operator fun contains(element: @FlexibleNullability String?): Boolean { - return #$$delegate_0.contains(element = element) + return .#$$delegate_0.contains(element = element) } override fun containsAll(elements: Collection<@FlexibleNullability String?>): Boolean { - return #$$delegate_0.containsAll(elements = elements) + return .#$$delegate_0.containsAll(elements = elements) } override fun isEmpty(): Boolean { - return #$$delegate_0.isEmpty() + return .#$$delegate_0.isEmpty() } override operator fun iterator(): MutableIterator<@FlexibleNullability String?> { - return #$$delegate_0.iterator() + return .#$$delegate_0.iterator() } override fun remove(element: @FlexibleNullability String?): Boolean { - return #$$delegate_0.remove(element = element) + return .#$$delegate_0.remove(element = element) } override fun removeAll(elements: Collection<@FlexibleNullability String?>): Boolean { - return #$$delegate_0.removeAll(elements = elements) + return .#$$delegate_0.removeAll(elements = elements) } override fun retainAll(elements: Collection<@FlexibleNullability String?>): Boolean { - return #$$delegate_0.retainAll(elements = elements) + return .#$$delegate_0.retainAll(elements = elements) } override val size: Int override get(): Int { - return #$$delegate_0.() + return .#$$delegate_0.() } } diff --git a/compiler/testData/ir/irText/firProblems/MultiList.kt.txt b/compiler/testData/ir/irText/firProblems/MultiList.kt.txt index 36fbbfbde82..594dc6801a4 100644 --- a/compiler/testData/ir/irText/firProblems/MultiList.kt.txt +++ b/compiler/testData/ir/irText/firProblems/MultiList.kt.txt @@ -10,24 +10,24 @@ data class Some { get operator fun component1(): T { - return #value + return .#value } - fun copy(value: T = #value): Some { + fun copy(value: T = .#value): Some { return Some(value = value) } override fun toString(): String { return "Some(" + "value=" + -#value + +.#value + ")" } override fun hashCode(): Int { return when { - EQEQ(arg0 = #value, arg1 = null) -> 0 - true -> #value.hashCode() + EQEQ(arg0 = .#value, arg1 = null) -> 0 + true -> .#value.hashCode() } } @@ -40,7 +40,7 @@ data class Some { } val tmp0_other_with_cast: Some = other as Some when { - EQEQ(arg0 = #value, arg1 = #value).not() -> return false + EQEQ(arg0 = .#value, arg1 = tmp0_other_with_cast.#value).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/firProblems/SignatureClash.kt.txt b/compiler/testData/ir/irText/firProblems/SignatureClash.kt.txt index f26f3f28144..3382eec4c03 100644 --- a/compiler/testData/ir/irText/firProblems/SignatureClash.kt.txt +++ b/compiler/testData/ir/irText/firProblems/SignatureClash.kt.txt @@ -41,26 +41,26 @@ data class DataClass : Derived, Delegate { get override fun bar() { - #delegate.bar() + .#delegate.bar() } operator fun component1(): Delegate { - return #delegate + return .#delegate } - fun copy(delegate: Delegate = #delegate): DataClass { + fun copy(delegate: Delegate = .#delegate): DataClass { return DataClass(delegate = delegate) } override fun toString(): String { return "DataClass(" + "delegate=" + -#delegate + +.#delegate + ")" } override fun hashCode(): Int { - return #delegate.hashCode() + return .#delegate.hashCode() } override operator fun equals(other: Any?): Boolean { @@ -72,7 +72,7 @@ data class DataClass : Derived, Delegate { } val tmp0_other_with_cast: DataClass = other as DataClass when { - EQEQ(arg0 = #delegate, arg1 = #delegate).not() -> return false + EQEQ(arg0 = .#delegate, arg1 = tmp0_other_with_cast.#delegate).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt.txt b/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt.txt index 1acd651229a..492ab2f9cd2 100644 --- a/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt.txt +++ b/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt.txt @@ -14,30 +14,30 @@ data class A { get operator fun component1(): Int { - return #x + return .#x } operator fun component2(): Int { - return #y + return .#y } - fun copy(x: Int = #x, y: Int = #y): A { + fun copy(x: Int = .#x, y: Int = .#y): A { return A(x = x, y = y) } override fun toString(): String { return "A(" + "x=" + -#x + +.#x + ", " + "y=" + -#y + +.#y + ")" } override fun hashCode(): Int { - var result: Int = #x.hashCode() - result = result.times(other = 31).plus(other = #y.hashCode()) + var result: Int = .#x.hashCode() + result = result.times(other = 31).plus(other = .#y.hashCode()) return result } @@ -50,10 +50,10 @@ data class A { } val tmp0_other_with_cast: A = other as A when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } when { - EQEQ(arg0 = #y, arg1 = #y).not() -> return false + EQEQ(arg0 = .#y, arg1 = tmp0_other_with_cast.#y).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.kt.txt b/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.kt.txt index 9d12539159c..83c466f38bf 100644 --- a/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.kt.txt +++ b/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.kt.txt @@ -108,7 +108,7 @@ val Value>.additionalText: P /* by */ () } private get(): Any? { - return #deepO$delegate.getValue(t = , p = ::deepO) /*as Any? */ + return .#deepO$delegate.getValue(t = , p = ::deepO) /*as Any? */ } private val Value>.deepK: Any? /* by */ @@ -129,7 +129,7 @@ val Value>.additionalText: P /* by */ () } private get(): Any? { - return #deepK$delegate.getValue(t = , p = ::deepK) /*as Any? */ + return .#deepK$delegate.getValue(t = , p = ::deepK) /*as Any? */ } override operator fun getValue(t: Value>, p: KProperty<*>): P { diff --git a/compiler/testData/ir/irText/types/javaWildcardType.kt.txt b/compiler/testData/ir/irText/types/javaWildcardType.kt.txt index 4425a5dfca8..f4e9ce282a2 100644 --- a/compiler/testData/ir/irText/types/javaWildcardType.kt.txt +++ b/compiler/testData/ir/irText/types/javaWildcardType.kt.txt @@ -15,36 +15,36 @@ class C : J, K { private /*final field*/ val $$delegate_0: J = j override fun jf1(): @FlexibleNullability MutableCollection? { - return #$$delegate_0.jf1() + return .#$$delegate_0.jf1() } override fun jf2(): @FlexibleNullability MutableCollection<@FlexibleNullability CharSequence?>? { - return #$$delegate_0.jf2() + return .#$$delegate_0.jf2() } override fun jg1(c: @FlexibleNullability MutableCollection?) { - #$$delegate_0.jg1(c = c) + .#$$delegate_0.jg1(c = c) } override fun jg2(c: @FlexibleNullability MutableCollection<@FlexibleNullability CharSequence?>?) { - #$$delegate_0.jg2(c = c) + .#$$delegate_0.jg2(c = c) } private /*final field*/ val $$delegate_1: K = k override fun kf1(): Collection { - return #$$delegate_1.kf1() + return .#$$delegate_1.kf1() } override fun kf2(): Collection { - return #$$delegate_1.kf2() + return .#$$delegate_1.kf2() } override fun kg1(c: Collection) { - #$$delegate_1.kg1(c = c) + .#$$delegate_1.kg1(c = c) } override fun kg2(c: Collection) { - #$$delegate_1.kg2(c = c) + .#$$delegate_1.kg2(c = c) } } diff --git a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.kt.txt b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.kt.txt index b3b2bb27bdf..5926f965acc 100644 --- a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.kt.txt +++ b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.kt.txt @@ -90,30 +90,30 @@ data class P { get operator fun component1(): Int { - return #x + return .#x } operator fun component2(): Int { - return #y + return .#y } - fun copy(x: Int = #x, y: Int = #y): P { + fun copy(x: Int = .#x, y: Int = .#y): P { return P(x = x, y = y) } override fun toString(): String { return "P(" + "x=" + -#x + +.#x + ", " + "y=" + -#y + +.#y + ")" } override fun hashCode(): Int { - var result: Int = #x.hashCode() - result = result.times(other = 31).plus(other = #y.hashCode()) + var result: Int = .#x.hashCode() + result = result.times(other = 31).plus(other = .#y.hashCode()) return result } @@ -126,10 +126,10 @@ data class P { } val tmp0_other_with_cast: P = other as P when { - EQEQ(arg0 = #x, arg1 = #x).not() -> return false + EQEQ(arg0 = .#x, arg1 = tmp0_other_with_cast.#x).not() -> return false } when { - EQEQ(arg0 = #y, arg1 = #y).not() -> return false + EQEQ(arg0 = .#y, arg1 = tmp0_other_with_cast.#y).not() -> return false } return true } diff --git a/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.kt.txt b/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.kt.txt index 7b1904b8b20..cc82a1c85f5 100644 --- a/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.kt.txt +++ b/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.kt.txt @@ -33,11 +33,11 @@ class MySet : Set { fun test() { f(s = s() /*!! String */) - f(s = #STRING /*!! String */) + f(s = super.#STRING /*!! String */) } fun testContains(m: MySet) { - m.contains(element = #STRING /*!! String */) /*~> Unit */ + m.contains(element = super.#STRING /*!! String */) /*~> Unit */ m.contains(element = "abc") /*~> Unit */ } diff --git a/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.kt.txt b/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.kt.txt index f27bf404707..9d6f6c48a1d 100644 --- a/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.kt.txt +++ b/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.kt.txt @@ -1,5 +1,5 @@ fun test1(): Boolean { - return #BOOL_NULL /*!! Boolean */.equals(other = null) + return super.#BOOL_NULL /*!! Boolean */.equals(other = null) } fun test2(): Boolean { diff --git a/compiler/testData/ir/irText/types/rawTypeInSignature.kt.txt b/compiler/testData/ir/irText/types/rawTypeInSignature.kt.txt index 22ae84768b0..b091d11a5c9 100644 --- a/compiler/testData/ir/irText/types/rawTypeInSignature.kt.txt +++ b/compiler/testData/ir/irText/types/rawTypeInSignature.kt.txt @@ -46,35 +46,35 @@ class KRaw : JRaw { private /*final field*/ val $$delegate_0: JRaw = j override fun returnsRawGenericIn(): @FlexibleNullability @RawType GenericIn? { - return #$$delegate_0.returnsRawGenericIn() + return .#$$delegate_0.returnsRawGenericIn() } override fun returnsRawGenericInv(): @FlexibleNullability @RawType GenericInv? { - return #$$delegate_0.returnsRawGenericInv() + return .#$$delegate_0.returnsRawGenericInv() } override fun returnsRawGenericOut(): @FlexibleNullability @RawType GenericOut? { - return #$$delegate_0.returnsRawGenericOut() + return .#$$delegate_0.returnsRawGenericOut() } override fun returnsRawList(): @FlexibleNullability @RawType MutableList? { - return #$$delegate_0.returnsRawList() + return .#$$delegate_0.returnsRawList() } override fun takesRawGenericIn(g: @FlexibleNullability @RawType GenericIn?) { - #$$delegate_0.takesRawGenericIn(g = g) + .#$$delegate_0.takesRawGenericIn(g = g) } override fun takesRawGenericInv(g: @FlexibleNullability @RawType GenericInv?) { - #$$delegate_0.takesRawGenericInv(g = g) + .#$$delegate_0.takesRawGenericInv(g = g) } override fun takesRawGenericOut(g: @FlexibleNullability @RawType GenericOut?) { - #$$delegate_0.takesRawGenericOut(g = g) + .#$$delegate_0.takesRawGenericOut(g = g) } override fun takesRawList(list: @FlexibleNullability @RawType MutableList?) { - #$$delegate_0.takesRawList(list = list) + .#$$delegate_0.takesRawList(list = list) } } diff --git a/compiler/testData/ir/irText/types/smartCastOnFieldReceiverOfGenericType.kt.txt b/compiler/testData/ir/irText/types/smartCastOnFieldReceiverOfGenericType.kt.txt index bffe9e72a4c..f7cca34304d 100644 --- a/compiler/testData/ir/irText/types/smartCastOnFieldReceiverOfGenericType.kt.txt +++ b/compiler/testData/ir/irText/types/smartCastOnFieldReceiverOfGenericType.kt.txt @@ -1,11 +1,11 @@ fun testSetField(a: Any, b: Any) { a as JCell /*~> Unit */ b as String /*~> Unit */ - #value = b /*as String */ + a /*as JCell */super.#value = b /*as String */ } fun testGetField(a: Any): String { a as JCell /*~> Unit */ - return #value /*!! String */ + return a /*as JCell */super.#value /*!! String */ }