Introduce IrGetValue as a replacement for IrThisReference / IrGetExtensionReceiver / IrGetVariable.

This commit is contained in:
Dmitry Petrov
2016-09-30 17:45:41 +03:00
parent 8efe326904
commit a51efaacc9
82 changed files with 409 additions and 457 deletions
@@ -24,7 +24,7 @@ FILE /arrayAugmentedAssignment1.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): IntArray'
GET_FIELD 'x: IntArray' type=kotlin.IntArray origin=null
receiver: THIS of 'C' type=C
receiver: GET_VAR '<receiver: C>' type=C origin=null
FUN public fun testVariable(): kotlin.Unit
BLOCK_BODY
VAR var x: kotlin.IntArray
@@ -11,7 +11,7 @@ FILE /arrayAugmentedAssignment2.kt
VAR IR_TEMPORARY_VARIABLE val tmp1_index0: kotlin.String
CONST String type=kotlin.String value=''
CALL 'set(String, Int) on IA: Unit' type=kotlin.Unit origin=PLUSEQ
$this: $RECEIVER of 'test(IA) on IB: Unit' type=IB
$this: GET_VAR '<receiver: test(IA) on IB: Unit>' type=IB origin=null
$receiver: GET_VAR 'tmp0_array: IA' type=IA origin=null
index: GET_VAR 'tmp1_index0: String' type=kotlin.String origin=null
value: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ
+2 -2
View File
@@ -12,11 +12,11 @@ FILE /assignments.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Int'
GET_FIELD 'x: Int' type=kotlin.Int origin=null
receiver: THIS of 'Ref' type=Ref
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x>(<set-?>: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_FIELD 'x: Int' type=kotlin.Unit origin=null
receiver: THIS of 'Ref' type=Ref
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN public fun test1(): kotlin.Unit
BLOCK_BODY
@@ -9,7 +9,7 @@ FILE /augmentedAssignmentWithExpression.kt
FUN public final fun test1(): kotlin.Unit
BLOCK_BODY
CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: THIS of 'Host' type=Host
$this: GET_VAR '<receiver: Host>' type=Host origin=null
x: CONST Int type=kotlin.Int value='1'
FUN public fun foo(): Host
BLOCK_BODY
@@ -18,7 +18,7 @@ FILE /augmentedAssignmentWithExpression.kt
FUN public fun Host.test2(): kotlin.Unit
BLOCK_BODY
CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: $RECEIVER of 'test2() on Host: Unit' type=Host
$this: GET_VAR '<receiver: test2() on Host: Unit>' type=Host origin=null
x: CONST Int type=kotlin.Int value='1'
FUN public fun test3(): kotlin.Unit
BLOCK_BODY
@@ -14,7 +14,7 @@ FILE /boundCallableReferences.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-bar>(): Int'
GET_FIELD 'bar: Int' type=kotlin.Int origin=null
receiver: THIS of 'A' type=A
receiver: GET_VAR '<receiver: A>' type=A origin=null
FUN public fun A.qux(): kotlin.Unit
BLOCK_BODY
PROPERTY public val test1: kotlin.reflect.KFunction0<kotlin.Unit>
+3 -3
View File
@@ -20,17 +20,17 @@ FILE /calls.kt
FUN public fun kotlin.Int.ext1(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='ext1() on Int: Int'
$RECEIVER of 'ext1() on Int: Int' type=kotlin.Int
GET_VAR '<receiver: ext1() on Int: Int>' type=kotlin.Int origin=null
FUN public fun kotlin.Int.ext2(x: kotlin.Int): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='ext2(Int) on Int: Int'
CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null
x: $RECEIVER of 'ext2(Int) on Int: Int' type=kotlin.Int
x: GET_VAR '<receiver: ext2(Int) on Int: Int>' type=kotlin.Int origin=null
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
FUN public fun kotlin.Int.ext3(x: kotlin.Int): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='ext3(Int) on Int: Int'
CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null
x: CALL 'ext1() on Int: Int' type=kotlin.Int origin=null
$receiver: $RECEIVER of 'ext3(Int) on Int: Int' type=kotlin.Int
$receiver: GET_VAR '<receiver: ext3(Int) on Int: Int>' type=kotlin.Int origin=null
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
@@ -7,11 +7,11 @@ FILE /chainOfSafeCalls.kt
FUN public final fun foo(): C
BLOCK_BODY
RETURN type=kotlin.Nothing from='foo(): C'
THIS of 'C' type=C
GET_VAR '<receiver: C>' type=C origin=null
FUN public final fun bar(): C?
BLOCK_BODY
RETURN type=kotlin.Nothing from='bar(): C?'
THIS of 'C' type=C
GET_VAR '<receiver: C>' type=C origin=null
FUN public fun test(nc: C?): C?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test(C?): C?'
@@ -12,11 +12,11 @@ FILE /complexAugmentedAssignment.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x1>(): Int'
GET_FIELD 'x1: Int' type=kotlin.Int origin=null
receiver: THIS of 'X1' type=X1
receiver: GET_VAR '<receiver: X1>' type=X1 origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x1>(<set-?>: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_FIELD 'x1: Int' type=kotlin.Unit origin=null
receiver: THIS of 'X1' type=X1
receiver: GET_VAR '<receiver: X1>' type=X1 origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
CLASS OBJECT X2
CONSTRUCTOR private constructor X2()
@@ -31,11 +31,11 @@ FILE /complexAugmentedAssignment.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x2>(): Int'
GET_FIELD 'x2: Int' type=kotlin.Int origin=null
receiver: THIS of 'X2' type=X1.X2
receiver: GET_VAR '<receiver: X2>' type=X1.X2 origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x2>(<set-?>: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_FIELD 'x2: Int' type=kotlin.Unit origin=null
receiver: THIS of 'X2' type=X1.X2
receiver: GET_VAR '<receiver: X2>' type=X1.X2 origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
CLASS OBJECT X3
CONSTRUCTOR private constructor X3()
@@ -50,11 +50,11 @@ FILE /complexAugmentedAssignment.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x3>(): Int'
GET_FIELD 'x3: Int' type=kotlin.Int origin=null
receiver: THIS of 'X3' type=X1.X2.X3
receiver: GET_VAR '<receiver: X3>' type=X1.X2.X3 origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x3>(<set-?>: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_FIELD 'x3: Int' type=kotlin.Unit origin=null
receiver: THIS of 'X3' type=X1.X2.X3
receiver: GET_VAR '<receiver: X3>' type=X1.X2.X3 origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN public fun test1(a: kotlin.IntArray): kotlin.Unit
BLOCK_BODY
@@ -138,11 +138,11 @@ FILE /complexAugmentedAssignment.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-s>(): Int'
GET_FIELD 's: Int' type=kotlin.Int origin=null
receiver: THIS of 'B' type=B
receiver: GET_VAR '<receiver: B>' type=B origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-s>(<set-?>: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_FIELD 's: Int' type=kotlin.Unit origin=null
receiver: THIS of 'B' type=B
receiver: GET_VAR '<receiver: B>' type=B origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
CLASS OBJECT Host
CONSTRUCTOR private constructor Host()
@@ -153,7 +153,7 @@ FILE /complexAugmentedAssignment.kt
BLOCK_BODY
BLOCK type=kotlin.Unit origin=PLUSEQ
VAR IR_TEMPORARY_VARIABLE val tmp0_this: B
$RECEIVER of 'plusAssign(B) on B: Unit' type=B
GET_VAR '<receiver: plusAssign(B) on B: Unit>' type=B origin=null
CALL '<set-s>(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR 'tmp0_this: B' type=B origin=null
<set-?>: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ
@@ -164,7 +164,7 @@ FILE /complexAugmentedAssignment.kt
FUN public fun Host.test3(v: B): kotlin.Unit
BLOCK_BODY
CALL 'plusAssign(B) on B: Unit' type=kotlin.Unit origin=PLUSEQ
$this: $RECEIVER of 'test3(B) on Host: Unit' type=Host
$this: GET_VAR '<receiver: test3(B) on Host: Unit>' type=Host origin=null
$receiver: GET_VAR 'value-parameter v: B' type=B origin=PLUSEQ
b: CALL 'constructor B(Int = ...)' type=B origin=null
s: CONST Int type=kotlin.Int value='1000'
@@ -7,7 +7,7 @@ FILE /conventionComparisons.kt
RETURN type=kotlin.Nothing from='test1(IA, IA) on IB: Boolean'
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=GT
$this: $RECEIVER of 'test1(IA, IA) on IB: Boolean' type=IB
$this: GET_VAR '<receiver: test1(IA, IA) on IB: Boolean>' type=IB origin=null
$receiver: GET_VAR 'value-parameter a1: IA' type=IA origin=null
other: GET_VAR 'value-parameter a2: IA' type=IA origin=null
FUN public fun IB.test2(a1: IA, a2: IA): kotlin.Boolean
@@ -15,7 +15,7 @@ FILE /conventionComparisons.kt
RETURN type=kotlin.Nothing from='test2(IA, IA) on IB: Boolean'
CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ
arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=GTEQ
$this: $RECEIVER of 'test2(IA, IA) on IB: Boolean' type=IB
$this: GET_VAR '<receiver: test2(IA, IA) on IB: Boolean>' type=IB origin=null
$receiver: GET_VAR 'value-parameter a1: IA' type=IA origin=null
other: GET_VAR 'value-parameter a2: IA' type=IA origin=null
FUN public fun IB.test3(a1: IA, a2: IA): kotlin.Boolean
@@ -23,7 +23,7 @@ FILE /conventionComparisons.kt
RETURN type=kotlin.Nothing from='test3(IA, IA) on IB: Boolean'
CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT
arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=LT
$this: $RECEIVER of 'test3(IA, IA) on IB: Boolean' type=IB
$this: GET_VAR '<receiver: test3(IA, IA) on IB: Boolean>' type=IB origin=null
$receiver: GET_VAR 'value-parameter a1: IA' type=IA origin=null
other: GET_VAR 'value-parameter a2: IA' type=IA origin=null
FUN public fun IB.test4(a1: IA, a2: IA): kotlin.Boolean
@@ -31,6 +31,6 @@ FILE /conventionComparisons.kt
RETURN type=kotlin.Nothing from='test4(IA, IA) on IB: Boolean'
CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ
arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=LTEQ
$this: $RECEIVER of 'test4(IA, IA) on IB: Boolean' type=IB
$this: GET_VAR '<receiver: test4(IA, IA) on IB: Boolean>' type=IB origin=null
$receiver: GET_VAR 'value-parameter a1: IA' type=IA origin=null
other: GET_VAR 'value-parameter a2: IA' type=IA origin=null
+2 -2
View File
@@ -24,9 +24,9 @@ FILE /destructuring1.kt
GET_OBJECT 'A' type=A
VAR val x: kotlin.Int
CALL 'component1() on A: Int' type=kotlin.Int origin=COMPONENT_N(index=1)
$this: $RECEIVER of 'test() on B: Unit' type=B
$this: GET_VAR '<receiver: test() on B: Unit>' type=B origin=null
$receiver: GET_VAR 'tmp0_container: A' type=A origin=null
VAR val y: kotlin.Int
CALL 'component2() on A: Int' type=kotlin.Int origin=COMPONENT_N(index=2)
$this: $RECEIVER of 'test() on B: Unit' type=B
$this: GET_VAR '<receiver: test() on B: Unit>' type=B origin=null
$receiver: GET_VAR 'tmp0_container: A' type=A origin=null
@@ -8,4 +8,4 @@ FILE /extensionPropertyGetterCall.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5() on String: String'
CALL '<get-okext>() on String: String' type=kotlin.String origin=GET_PROPERTY
$receiver: $RECEIVER of 'test5() on String: String' type=kotlin.String
$receiver: GET_VAR '<receiver: test5() on String: String>' type=kotlin.String origin=null
@@ -17,11 +17,11 @@ FILE /forWithImplicitReceivers.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): Int'
GET_FIELD 'value: Int' type=kotlin.Int origin=null
receiver: THIS of 'IntCell' type=IntCell
receiver: GET_VAR '<receiver: IntCell>' type=IntCell origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-value>(<set-?>: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=null
receiver: THIS of 'IntCell' type=IntCell
receiver: GET_VAR '<receiver: IntCell>' type=IntCell origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
CLASS INTERFACE IReceiver
FUN public open operator fun FiveTimes.iterator(): IntCell
@@ -35,14 +35,14 @@ FILE /forWithImplicitReceivers.kt
CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT
arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=GT
$this: CALL '<get-value>(): Int' type=kotlin.Int origin=GET_PROPERTY
$this: $RECEIVER of 'hasNext() on IntCell: Boolean' type=IntCell
$this: GET_VAR '<receiver: hasNext() on IntCell: Boolean>' type=IntCell origin=null
other: CONST Int type=kotlin.Int value='0'
FUN public open operator fun IntCell.next(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='next() on IntCell: Int'
BLOCK type=kotlin.Int origin=POSTFIX_DECR
VAR IR_TEMPORARY_VARIABLE val tmp0_this: IntCell
$RECEIVER of 'next() on IntCell: Int' type=IntCell
GET_VAR '<receiver: next() on IntCell: Int>' type=IntCell origin=null
BLOCK type=kotlin.Int origin=POSTFIX_DECR
VAR IR_TEMPORARY_VARIABLE val tmp1: kotlin.Int
CALL '<get-value>(): Int' type=kotlin.Int origin=POSTFIX_DECR
@@ -57,16 +57,16 @@ FILE /forWithImplicitReceivers.kt
BLOCK type=kotlin.Unit origin=FOR_LOOP
VAR IR_TEMPORARY_VARIABLE val tmp0_iterator: IntCell
CALL 'iterator() on FiveTimes: IntCell' type=IntCell origin=FOR_LOOP_ITERATOR
$this: $RECEIVER of 'test() on IReceiver: Unit' type=IReceiver
$this: GET_VAR '<receiver: test() on IReceiver: Unit>' type=IReceiver origin=null
$receiver: GET_OBJECT 'FiveTimes' type=FiveTimes
WHILE label=null origin=FOR_LOOP_INNER_WHILE
condition: CALL 'hasNext() on IntCell: Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT
$this: $RECEIVER of 'test() on IReceiver: Unit' type=IReceiver
$this: GET_VAR '<receiver: test() on IReceiver: Unit>' type=IReceiver origin=null
$receiver: GET_VAR 'tmp0_iterator: IntCell' type=IntCell origin=null
body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE
VAR val i: kotlin.Int
CALL 'next() on IntCell: Int' type=kotlin.Int origin=FOR_LOOP_NEXT
$this: $RECEIVER of 'test() on IReceiver: Unit' type=IReceiver
$this: GET_VAR '<receiver: test() on IReceiver: Unit>' type=IReceiver origin=null
$receiver: GET_VAR 'tmp0_iterator: IntCell' type=IntCell origin=null
BLOCK type=kotlin.Unit origin=null
CALL 'println(Int): Unit' type=kotlin.Unit origin=null
@@ -7,15 +7,15 @@ FILE /Derived.kt
ANONYMOUS_INITIALIZER Derived
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=EQ
receiver: THIS of 'Derived' type=Derived
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
value: CONST Int type=kotlin.Int value='0'
FUN public final fun getValue(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='getValue(): Int'
GET_FIELD 'value: Int' type=kotlin.Int origin=GET_PROPERTY
receiver: THIS of 'Derived' type=Derived
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
FUN public final fun setValue(value: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=EQ
receiver: THIS of 'Derived' type=Derived
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null
@@ -41,7 +41,7 @@ FILE /jvmStaticFieldReference.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test>(): Int'
GET_FIELD 'test: Int' type=kotlin.Int origin=null
receiver: THIS of 'TestClass' type=TestClass
receiver: GET_VAR '<receiver: TestClass>' type=TestClass origin=null
ANONYMOUS_INITIALIZER TestClass
BLOCK_BODY
CALL 'println(String!): Unit' type=kotlin.Unit origin=null
+1 -1
View File
@@ -47,4 +47,4 @@ FILE /references.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5() on String: String'
CALL '<get-okext>() on String: String' type=kotlin.String origin=GET_PROPERTY
$receiver: $RECEIVER of 'test5() on String: String' type=kotlin.String
$receiver: GET_VAR '<receiver: test5() on String: String>' type=kotlin.String origin=null
+2 -2
View File
@@ -12,11 +12,11 @@ FILE /safeAssignment.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Int'
GET_FIELD 'x: Int' type=kotlin.Int origin=null
receiver: THIS of 'C' type=C
receiver: GET_VAR '<receiver: C>' type=C origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x>(<set-?>: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_FIELD 'x: Int' type=kotlin.Unit origin=null
receiver: THIS of 'C' type=C
receiver: GET_VAR '<receiver: C>' type=C origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN public fun test(nc: C?): kotlin.Unit
BLOCK_BODY
@@ -16,7 +16,7 @@ FILE /safeCallWithIncrementDecrement.kt
RETURN type=kotlin.Nothing from='inc() on Int?: Int?'
BLOCK type=kotlin.Int? origin=SAFE_CALL
VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.Int?
$RECEIVER of 'inc() on Int?: Int?' type=kotlin.Int?
GET_VAR '<receiver: inc() on Int?: Int?>' type=kotlin.Int? origin=null
WHEN type=kotlin.Int? origin=SAFE_CALL
BRANCH
if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
+4 -4
View File
@@ -12,18 +12,18 @@ FILE /safeCalls.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): Int'
GET_FIELD 'value: Int' type=kotlin.Int origin=null
receiver: THIS of 'Ref' type=Ref
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-value>(<set-?>: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=null
receiver: THIS of 'Ref' type=Ref
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
CLASS INTERFACE IHost
FUN public open fun kotlin.String.extLength(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='extLength() on String: Int'
CALL '<get-length>(): Int' type=kotlin.Int origin=GET_PROPERTY
$this: $RECEIVER of 'extLength() on String: Int' type=kotlin.String
$this: GET_VAR '<receiver: extLength() on String: Int>' type=kotlin.String origin=null
FUN public fun test1(x: kotlin.String?): kotlin.Int?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(String?): Int?'
@@ -105,5 +105,5 @@ FILE /safeCalls.kt
BRANCH
if: CONST Boolean type=kotlin.Boolean value='true'
then: CALL 'extLength() on String: Int' type=kotlin.Int origin=null
$this: $RECEIVER of 'test5(String?) on IHost: Int?' type=IHost
$this: GET_VAR '<receiver: test5(String?) on IHost: Int?>' type=IHost origin=null
$receiver: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null
@@ -12,6 +12,6 @@ FILE /Derived.kt
GET_VAR 'value-parameter v: Any' type=kotlin.Any origin=null
then: BLOCK type=kotlin.Unit origin=null
SET_FIELD 'value: String!' type=kotlin.Unit origin=EQ
receiver: THIS of 'Derived' type=Derived
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
value: TYPE_OP origin=IMPLICIT_CAST typeOperand=kotlin.String!
GET_VAR 'value-parameter v: Any' type=kotlin.Any origin=null
@@ -6,7 +6,7 @@ FILE /variableAsFunctionCall.kt
FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun <anonymous>(): kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='<anonymous>(): String'
$RECEIVER of 'k() on String: () -> String' type=kotlin.String
GET_VAR '<receiver: k() on String: () -> String>' type=kotlin.String origin=null
CALLABLE_REFERENCE '<anonymous>(): String' type=() -> kotlin.String origin=LAMBDA
FUN public fun test1(f: () -> kotlin.Unit): kotlin.Unit
BLOCK_BODY