Render receivers as 'this@owner: type'

Add test for generic inner class with generic outer class.
This commit is contained in:
Dmitry Petrov
2017-04-19 18:19:31 +03:00
parent 1bf6f8fc57
commit a511540aad
99 changed files with 944 additions and 905 deletions
@@ -12,7 +12,7 @@ FILE /arrayAugmentedAssignment1.kt
RETURN type=kotlin.Nothing from='bar(): Int'
CONST Int type=kotlin.Int value='42'
CLASS CLASS C
$new: VALUE_PARAMETER <receiver: C>
$new: VALUE_PARAMETER this@C: C
CONSTRUCTOR public constructor C(x: kotlin.IntArray)
VALUE_PARAMETER value-parameter x: kotlin.IntArray
BLOCK_BODY
@@ -23,11 +23,11 @@ FILE /arrayAugmentedAssignment1.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: IntArray' type=kotlin.IntArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.IntArray
$this: VALUE_PARAMETER <receiver: C>
$this: VALUE_PARAMETER this@C: C
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): IntArray'
GET_FIELD 'x: IntArray' type=kotlin.IntArray origin=null
receiver: GET_VAR '<receiver: C>' type=C origin=null
receiver: GET_VAR 'this@C: C' type=C origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
@@ -1,22 +1,22 @@
FILE /arrayAugmentedAssignment2.kt
CLASS INTERFACE IA
FUN public abstract operator fun get(index: kotlin.String): kotlin.Int
$this: VALUE_PARAMETER <receiver: IA>
$this: VALUE_PARAMETER this@IA: IA
VALUE_PARAMETER value-parameter index: kotlin.String
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS INTERFACE IB
FUN public abstract operator fun IA.set(index: kotlin.String, value: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: IB>
$receiver: VALUE_PARAMETER <receiver: set(String, Int) on IA: Unit>
$this: VALUE_PARAMETER this@IB: IB
$receiver: VALUE_PARAMETER this@set: IA
VALUE_PARAMETER value-parameter index: kotlin.String
VALUE_PARAMETER value-parameter value: kotlin.Int
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
FUN public fun IB.test(a: IA): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test(IA) on IB: Unit>
$receiver: VALUE_PARAMETER this@test: IB
VALUE_PARAMETER value-parameter a: IA
BLOCK_BODY
BLOCK type=kotlin.Unit origin=PLUSEQ
@@ -25,7 +25,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: GET_VAR '<receiver: test(IA) on IB: Unit>' type=IB origin=null
$this: GET_VAR 'this@test: IB' 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
+5 -5
View File
@@ -1,6 +1,6 @@
FILE /assignments.kt
CLASS CLASS Ref
$new: VALUE_PARAMETER <receiver: Ref>
$new: VALUE_PARAMETER this@Ref: Ref
CONSTRUCTOR public constructor Ref(x: kotlin.Int)
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
@@ -11,17 +11,17 @@ FILE /assignments.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Ref>
$this: VALUE_PARAMETER this@Ref: Ref
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Int'
GET_FIELD 'x: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
receiver: GET_VAR 'this@Ref: Ref' type=Ref origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Ref>
$this: VALUE_PARAMETER this@Ref: Ref
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'x: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
receiver: GET_VAR 'this@Ref: Ref' type=Ref origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
@@ -1,6 +1,6 @@
FILE /augmentedAssignment2.kt
CLASS CLASS A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR public constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -9,23 +9,23 @@ FILE /augmentedAssignment2.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
FUN public operator fun A.plusAssign(s: kotlin.String): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: plusAssign(String) on A: Unit>
$receiver: VALUE_PARAMETER this@plusAssign: A
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
FUN public operator fun A.minusAssign(s: kotlin.String): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: minusAssign(String) on A: Unit>
$receiver: VALUE_PARAMETER this@minusAssign: A
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
FUN public operator fun A.timesAssign(s: kotlin.String): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: timesAssign(String) on A: Unit>
$receiver: VALUE_PARAMETER this@timesAssign: A
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
FUN public operator fun A.divAssign(s: kotlin.String): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: divAssign(String) on A: Unit>
$receiver: VALUE_PARAMETER this@divAssign: A
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
FUN public operator fun A.modAssign(s: kotlin.String): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: modAssign(String) on A: Unit>
$receiver: VALUE_PARAMETER this@modAssign: A
VALUE_PARAMETER value-parameter s: kotlin.String
BLOCK_BODY
PROPERTY public val p: A
@@ -1,19 +1,19 @@
FILE /augmentedAssignmentWithExpression.kt
CLASS CLASS Host
$new: VALUE_PARAMETER <receiver: Host>
$new: VALUE_PARAMETER this@Host: Host
CONSTRUCTOR public constructor Host()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Host'
FUN public final operator fun plusAssign(x: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Host>
$this: VALUE_PARAMETER this@Host: Host
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
FUN public final fun test1(): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Host>
$this: VALUE_PARAMETER this@Host: Host
BLOCK_BODY
CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR '<receiver: Host>' type=Host origin=PLUSEQ
$this: GET_VAR 'this@Host: Host' type=Host origin=PLUSEQ
x: CONST Int type=kotlin.Int value='1'
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
@@ -23,10 +23,10 @@ FILE /augmentedAssignmentWithExpression.kt
RETURN type=kotlin.Nothing from='foo(): Host'
CALL 'constructor Host()' type=Host origin=null
FUN public fun Host.test2(): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test2() on Host: Unit>
$receiver: VALUE_PARAMETER this@test2: Host
BLOCK_BODY
CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR '<receiver: test2() on Host: Unit>' type=Host origin=PLUSEQ
$this: GET_VAR 'this@test2: Host' type=Host origin=PLUSEQ
x: CONST Int type=kotlin.Int value='1'
FUN public fun test3(): kotlin.Unit
BLOCK_BODY
@@ -1,28 +1,28 @@
FILE /boundCallableReferences.kt
CLASS CLASS A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR public constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='A'
FUN public final fun foo(): kotlin.Unit
$this: VALUE_PARAMETER <receiver: A>
$this: VALUE_PARAMETER this@A: A
BLOCK_BODY
PROPERTY public final val bar: kotlin.Int = 0
FIELD PROPERTY_BACKING_FIELD public final val bar: kotlin.Int = 0
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-bar>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: A>
$this: VALUE_PARAMETER this@A: A
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-bar>(): Int'
GET_FIELD 'bar: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: A>' type=A origin=null
receiver: GET_VAR 'this@A: A' type=A origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
FUN public fun A.qux(): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: qux() on A: Unit>
$receiver: VALUE_PARAMETER this@qux: A
BLOCK_BODY
PROPERTY public val test1: kotlin.reflect.KFunction0<kotlin.Unit>
FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.reflect.KFunction0<kotlin.Unit>
+6 -6
View File
@@ -22,24 +22,24 @@ FILE /calls.kt
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
FUN public fun kotlin.Int.ext1(): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: ext1() on Int: Int>
$receiver: VALUE_PARAMETER this@ext1: Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='ext1() on Int: Int'
GET_VAR '<receiver: ext1() on Int: Int>' type=kotlin.Int origin=null
GET_VAR 'this@ext1: Int' type=kotlin.Int origin=null
FUN public fun kotlin.Int.ext2(x: kotlin.Int): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: ext2(Int) on Int: Int>
$receiver: VALUE_PARAMETER this@ext2: Int
VALUE_PARAMETER value-parameter x: 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: GET_VAR '<receiver: ext2(Int) on Int: Int>' type=kotlin.Int origin=null
x: GET_VAR 'this@ext2: 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
$receiver: VALUE_PARAMETER <receiver: ext3(Int) on Int: Int>
$receiver: VALUE_PARAMETER this@ext3: Int
VALUE_PARAMETER value-parameter x: 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: GET_VAR '<receiver: ext3(Int) on Int: Int>' type=kotlin.Int origin=null
$receiver: GET_VAR 'this@ext3: Int' type=kotlin.Int origin=null
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
@@ -1,20 +1,20 @@
FILE /chainOfSafeCalls.kt
CLASS CLASS C
$new: VALUE_PARAMETER <receiver: C>
$new: VALUE_PARAMETER this@C: C
CONSTRUCTOR public constructor C()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='C'
FUN public final fun foo(): C
$this: VALUE_PARAMETER <receiver: C>
$this: VALUE_PARAMETER this@C: C
BLOCK_BODY
RETURN type=kotlin.Nothing from='foo(): C'
GET_VAR '<receiver: C>' type=C origin=null
GET_VAR 'this@C: C' type=C origin=null
FUN public final fun bar(): C?
$this: VALUE_PARAMETER <receiver: C>
$this: VALUE_PARAMETER this@C: C
BLOCK_BODY
RETURN type=kotlin.Nothing from='bar(): C?'
GET_VAR '<receiver: C>' type=C origin=null
GET_VAR 'this@C: C' type=C origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
+1 -1
View File
@@ -1,6 +1,6 @@
FILE /classReference.kt
CLASS CLASS A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR public constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -1,6 +1,6 @@
FILE /complexAugmentedAssignment.kt
CLASS OBJECT X1
$new: VALUE_PARAMETER <receiver: X1>
$new: VALUE_PARAMETER this@X1: X1
CONSTRUCTOR private constructor X1()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -10,20 +10,20 @@ FILE /complexAugmentedAssignment.kt
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x1>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: X1>
$this: VALUE_PARAMETER this@X1: X1
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x1>(): Int'
GET_FIELD 'x1: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: X1>' type=X1 origin=null
receiver: GET_VAR 'this@X1: X1' type=X1 origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x1>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: X1>
$this: VALUE_PARAMETER this@X1: X1
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'x1: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: X1>' type=X1 origin=null
receiver: GET_VAR 'this@X1: X1' type=X1 origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
CLASS OBJECT X2
$new: VALUE_PARAMETER <receiver: X2>
$new: VALUE_PARAMETER this@X2: X2
CONSTRUCTOR private constructor X2()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -33,20 +33,20 @@ FILE /complexAugmentedAssignment.kt
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x2>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: X2>
$this: VALUE_PARAMETER this@X2: X2
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x2>(): Int'
GET_FIELD 'x2: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: X2>' type=X1.X2 origin=null
receiver: GET_VAR 'this@X2: X2' type=X1.X2 origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x2>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: X2>
$this: VALUE_PARAMETER this@X2: X2
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'x2: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: X2>' type=X1.X2 origin=null
receiver: GET_VAR 'this@X2: X2' type=X1.X2 origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
CLASS OBJECT X3
$new: VALUE_PARAMETER <receiver: X3>
$new: VALUE_PARAMETER this@X3: X3
CONSTRUCTOR private constructor X3()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -56,17 +56,17 @@ FILE /complexAugmentedAssignment.kt
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x3>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: X3>
$this: VALUE_PARAMETER this@X3: X3
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x3>(): Int'
GET_FIELD 'x3: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: X3>' type=X1.X2.X3 origin=null
receiver: GET_VAR 'this@X3: X3' type=X1.X2.X3 origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x3>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: X3>
$this: VALUE_PARAMETER this@X3: X3
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'x3: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: X3>' type=X1.X2.X3 origin=null
receiver: GET_VAR 'this@X3: X3' type=X1.X2.X3 origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
@@ -146,7 +146,7 @@ FILE /complexAugmentedAssignment.kt
$this: GET_VAR 'tmp5: Int' type=kotlin.Int origin=null
GET_VAR 'tmp5: Int' type=kotlin.Int origin=null
CLASS CLASS B
$new: VALUE_PARAMETER <receiver: B>
$new: VALUE_PARAMETER this@B: B
CONSTRUCTOR public constructor B(s: kotlin.Int = ...)
VALUE_PARAMETER value-parameter s: kotlin.Int = ...
EXPRESSION_BODY
@@ -159,35 +159,35 @@ FILE /complexAugmentedAssignment.kt
EXPRESSION_BODY
GET_VAR 'value-parameter s: Int = ...' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-s>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
$this: VALUE_PARAMETER this@B: B
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-s>(): Int'
GET_FIELD 's: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: B>' type=B origin=null
receiver: GET_VAR 'this@B: B' type=B origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-s>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: B>
$this: VALUE_PARAMETER this@B: B
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 's: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: B>' type=B origin=null
receiver: GET_VAR 'this@B: B' type=B origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS OBJECT Host
$new: VALUE_PARAMETER <receiver: Host>
$new: VALUE_PARAMETER this@Host: Host
CONSTRUCTOR private constructor Host()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Host'
FUN public final operator fun B.plusAssign(b: B): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Host>
$receiver: VALUE_PARAMETER <receiver: plusAssign(B) on B: Unit>
$this: VALUE_PARAMETER this@Host: Host
$receiver: VALUE_PARAMETER this@plusAssign: B
VALUE_PARAMETER value-parameter b: B
BLOCK_BODY
BLOCK type=kotlin.Unit origin=PLUSEQ
VAR IR_TEMPORARY_VARIABLE val tmp0_this: B
GET_VAR '<receiver: plusAssign(B) on B: Unit>' type=B origin=null
GET_VAR 'this@plusAssign: B' 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
@@ -199,11 +199,11 @@ FILE /complexAugmentedAssignment.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
FUN public fun Host.test3(v: B): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test3(B) on Host: Unit>
$receiver: VALUE_PARAMETER this@test3: Host
VALUE_PARAMETER value-parameter v: B
BLOCK_BODY
CALL 'plusAssign(B) on B: Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR '<receiver: test3(B) on Host: Unit>' type=Host origin=null
$this: GET_VAR 'this@test3: Host' 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'
+1 -1
View File
@@ -1,6 +1,6 @@
FILE /contructorCall.kt
CLASS CLASS A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR public constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -5,53 +5,53 @@ FILE /conventionComparisons.kt
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS INTERFACE IB
FUN public abstract operator fun IA.compareTo(other: IA): kotlin.Int
$this: VALUE_PARAMETER <receiver: IB>
$receiver: VALUE_PARAMETER <receiver: compareTo(IA) on IA: Int>
$this: VALUE_PARAMETER this@IB: IB
$receiver: VALUE_PARAMETER this@compareTo: IA
VALUE_PARAMETER value-parameter other: IA
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
FUN public fun IB.test1(a1: IA, a2: IA): kotlin.Boolean
$receiver: VALUE_PARAMETER <receiver: test1(IA, IA) on IB: Boolean>
$receiver: VALUE_PARAMETER this@test1: IB
VALUE_PARAMETER value-parameter a1: IA
VALUE_PARAMETER value-parameter a2: IA
BLOCK_BODY
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: GET_VAR '<receiver: test1(IA, IA) on IB: Boolean>' type=IB origin=null
$this: GET_VAR 'this@test1: IB' 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
$receiver: VALUE_PARAMETER <receiver: test2(IA, IA) on IB: Boolean>
$receiver: VALUE_PARAMETER this@test2: IB
VALUE_PARAMETER value-parameter a1: IA
VALUE_PARAMETER value-parameter a2: IA
BLOCK_BODY
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: GET_VAR '<receiver: test2(IA, IA) on IB: Boolean>' type=IB origin=null
$this: GET_VAR 'this@test2: IB' 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
$receiver: VALUE_PARAMETER <receiver: test3(IA, IA) on IB: Boolean>
$receiver: VALUE_PARAMETER this@test3: IB
VALUE_PARAMETER value-parameter a1: IA
VALUE_PARAMETER value-parameter a2: IA
BLOCK_BODY
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: GET_VAR '<receiver: test3(IA, IA) on IB: Boolean>' type=IB origin=null
$this: GET_VAR 'this@test3: IB' 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
$receiver: VALUE_PARAMETER <receiver: test4(IA, IA) on IB: Boolean>
$receiver: VALUE_PARAMETER this@test4: IB
VALUE_PARAMETER value-parameter a1: IA
VALUE_PARAMETER value-parameter a2: IA
BLOCK_BODY
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: GET_VAR '<receiver: test4(IA, IA) on IB: Boolean>' type=IB origin=null
$this: GET_VAR 'this@test4: IB' 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
+9 -9
View File
@@ -1,6 +1,6 @@
FILE /destructuring1.kt
CLASS OBJECT A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR private constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -9,20 +9,20 @@ FILE /destructuring1.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS OBJECT B
$new: VALUE_PARAMETER <receiver: B>
$new: VALUE_PARAMETER this@B: B
CONSTRUCTOR private constructor B()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='B'
FUN public final operator fun A.component1(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
$receiver: VALUE_PARAMETER <receiver: component1() on A: Int>
$this: VALUE_PARAMETER this@B: B
$receiver: VALUE_PARAMETER this@component1: A
BLOCK_BODY
RETURN type=kotlin.Nothing from='component1() on A: Int'
CONST Int type=kotlin.Int value='1'
FUN public final operator fun A.component2(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
$receiver: VALUE_PARAMETER <receiver: component2() on A: Int>
$this: VALUE_PARAMETER this@B: B
$receiver: VALUE_PARAMETER this@component2: A
BLOCK_BODY
RETURN type=kotlin.Nothing from='component2() on A: Int'
CONST Int type=kotlin.Int value='2'
@@ -30,16 +30,16 @@ FILE /destructuring1.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
FUN public fun B.test(): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test() on B: Unit>
$receiver: VALUE_PARAMETER this@test: B
BLOCK_BODY
COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION
VAR IR_TEMPORARY_VARIABLE val tmp0_container: A
GET_OBJECT 'A' type=A
VAR val x: kotlin.Int
CALL 'component1() on A: Int' type=kotlin.Int origin=COMPONENT_N(index=1)
$this: GET_VAR '<receiver: test() on B: Unit>' type=B origin=null
$this: GET_VAR 'this@test: B' 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: GET_VAR '<receiver: test() on B: Unit>' type=B origin=null
$this: GET_VAR 'this@test: B' type=B origin=null
$receiver: GET_VAR 'tmp0_container: A' type=A origin=null
@@ -1,6 +1,6 @@
FILE /destructuringWithUnderscore.kt
CLASS OBJECT A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR private constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -9,26 +9,26 @@ FILE /destructuringWithUnderscore.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS OBJECT B
$new: VALUE_PARAMETER <receiver: B>
$new: VALUE_PARAMETER this@B: B
CONSTRUCTOR private constructor B()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='B'
FUN public final operator fun A.component1(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
$receiver: VALUE_PARAMETER <receiver: component1() on A: Int>
$this: VALUE_PARAMETER this@B: B
$receiver: VALUE_PARAMETER this@component1: A
BLOCK_BODY
RETURN type=kotlin.Nothing from='component1() on A: Int'
CONST Int type=kotlin.Int value='1'
FUN public final operator fun A.component2(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
$receiver: VALUE_PARAMETER <receiver: component2() on A: Int>
$this: VALUE_PARAMETER this@B: B
$receiver: VALUE_PARAMETER this@component2: A
BLOCK_BODY
RETURN type=kotlin.Nothing from='component2() on A: Int'
CONST Int type=kotlin.Int value='2'
FUN public final operator fun A.component3(): kotlin.Int
$this: VALUE_PARAMETER <receiver: B>
$receiver: VALUE_PARAMETER <receiver: component3() on A: Int>
$this: VALUE_PARAMETER this@B: B
$receiver: VALUE_PARAMETER this@component3: A
BLOCK_BODY
RETURN type=kotlin.Nothing from='component3() on A: Int'
CONST Int type=kotlin.Int value='3'
@@ -36,16 +36,16 @@ FILE /destructuringWithUnderscore.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
FUN public fun B.test(): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test() on B: Unit>
$receiver: VALUE_PARAMETER this@test: B
BLOCK_BODY
COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION
VAR IR_TEMPORARY_VARIABLE val tmp0_container: A
GET_OBJECT 'A' type=A
VAR val x: kotlin.Int
CALL 'component1() on A: Int' type=kotlin.Int origin=COMPONENT_N(index=1)
$this: GET_VAR '<receiver: test() on B: Unit>' type=B origin=null
$this: GET_VAR 'this@test: B' type=B origin=null
$receiver: GET_VAR 'tmp0_container: A' type=A origin=null
VAR val z: kotlin.Int
CALL 'component3() on A: Int' type=kotlin.Int origin=COMPONENT_N(index=3)
$this: GET_VAR '<receiver: test() on B: Unit>' type=B origin=null
$this: GET_VAR 'this@test: B' type=B origin=null
$receiver: GET_VAR 'tmp0_container: A' type=A origin=null
@@ -1,6 +1,6 @@
FILE /enumEntryAsReceiver.kt
CLASS ENUM_CLASS X
$new: VALUE_PARAMETER <receiver: X>
$new: VALUE_PARAMETER this@X: X
CONSTRUCTOR private constructor X()
BLOCK_BODY
ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)'
@@ -8,7 +8,7 @@ FILE /enumEntryAsReceiver.kt
ENUM_ENTRY enum entry B
init: ENUM_CONSTRUCTOR_CALL 'constructor B()'
class: CLASS ENUM_ENTRY B
$new: VALUE_PARAMETER <receiver: B>
$new: VALUE_PARAMETER this@B: B
CONSTRUCTOR private constructor B()
BLOCK_BODY
ENUM_CONSTRUCTOR_CALL 'constructor X()'
@@ -18,11 +18,11 @@ FILE /enumEntryAsReceiver.kt
EXPRESSION_BODY
CONST String type=kotlin.String value='OK'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value2>(): kotlin.String
$this: VALUE_PARAMETER <receiver: B>
$this: VALUE_PARAMETER this@B: B
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value2>(): String'
GET_FIELD 'value2: String' type=kotlin.String origin=null
receiver: GET_VAR '<receiver: B>' type=X.B origin=null
receiver: GET_VAR 'this@B: B' type=X.B origin=null
PROPERTY public open override val value: () -> kotlin.String
FIELD PROPERTY_BACKING_FIELD public open override val value: () -> kotlin.String
EXPRESSION_BODY
@@ -34,11 +34,11 @@ FILE /enumEntryAsReceiver.kt
$this: GET_ENUM 'B' type=X.B
FUNCTION_REFERENCE '<anonymous>(): String' type=() -> kotlin.String origin=LAMBDA
FUN DEFAULT_PROPERTY_ACCESSOR public open override fun <get-value>(): () -> kotlin.String
$this: VALUE_PARAMETER <receiver: B>
$this: VALUE_PARAMETER this@B: B
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): () -> String'
GET_FIELD 'value: () -> String' type=() -> kotlin.String origin=null
receiver: GET_VAR '<receiver: B>' type=X.B origin=null
receiver: GET_VAR 'this@B: B' type=X.B origin=null
FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any
FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit
FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class<X!>!
@@ -52,7 +52,7 @@ FILE /enumEntryAsReceiver.kt
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
PROPERTY public abstract val value: () -> kotlin.String
FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun <get-value>(): () -> kotlin.String
$this: VALUE_PARAMETER <receiver: X>
$this: VALUE_PARAMETER this@X: X
FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any
FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit
FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class<X!>!
@@ -1,13 +1,13 @@
FILE /extensionPropertyGetterCall.kt
PROPERTY public val kotlin.String.okext: kotlin.String
FUN public fun kotlin.String.<get-okext>(): kotlin.String
$receiver: VALUE_PARAMETER <receiver: okext: String on String>
$receiver: VALUE_PARAMETER this@okext: String
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-okext>() on String: String'
CONST String type=kotlin.String value='OK'
FUN public fun kotlin.String.test5(): kotlin.String
$receiver: VALUE_PARAMETER <receiver: test5() on String: String>
$receiver: VALUE_PARAMETER this@test5: String
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5() on String: String'
CALL '<get-okext>() on String: String' type=kotlin.String origin=GET_PROPERTY
$receiver: GET_VAR '<receiver: test5() on String: String>' type=kotlin.String origin=null
$receiver: GET_VAR 'this@test5: String' type=kotlin.String origin=null
@@ -1,6 +1,6 @@
FILE /forWithImplicitReceivers.kt
CLASS OBJECT FiveTimes
$new: VALUE_PARAMETER <receiver: FiveTimes>
$new: VALUE_PARAMETER this@FiveTimes: FiveTimes
CONSTRUCTOR private constructor FiveTimes()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -9,7 +9,7 @@ FILE /forWithImplicitReceivers.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS IntCell
$new: VALUE_PARAMETER <receiver: IntCell>
$new: VALUE_PARAMETER this@IntCell: IntCell
CONSTRUCTOR public constructor IntCell(value: kotlin.Int)
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
@@ -20,47 +20,47 @@ FILE /forWithImplicitReceivers.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: IntCell>
$this: VALUE_PARAMETER this@IntCell: IntCell
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): Int'
GET_FIELD 'value: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: IntCell>' type=IntCell origin=null
receiver: GET_VAR 'this@IntCell: IntCell' type=IntCell origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-value>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: IntCell>
$this: VALUE_PARAMETER this@IntCell: IntCell
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: IntCell>' type=IntCell origin=null
receiver: GET_VAR 'this@IntCell: IntCell' type=IntCell origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS INTERFACE IReceiver
FUN public open operator fun FiveTimes.iterator(): IntCell
$this: VALUE_PARAMETER <receiver: IReceiver>
$receiver: VALUE_PARAMETER <receiver: iterator() on FiveTimes: IntCell>
$this: VALUE_PARAMETER this@IReceiver: IReceiver
$receiver: VALUE_PARAMETER this@iterator: FiveTimes
BLOCK_BODY
RETURN type=kotlin.Nothing from='iterator() on FiveTimes: IntCell'
CALL 'constructor IntCell(Int)' type=IntCell origin=null
value: CONST Int type=kotlin.Int value='5'
FUN public open operator fun IntCell.hasNext(): kotlin.Boolean
$this: VALUE_PARAMETER <receiver: IReceiver>
$receiver: VALUE_PARAMETER <receiver: hasNext() on IntCell: Boolean>
$this: VALUE_PARAMETER this@IReceiver: IReceiver
$receiver: VALUE_PARAMETER this@hasNext: IntCell
BLOCK_BODY
RETURN type=kotlin.Nothing from='hasNext() on IntCell: Boolean'
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: GET_VAR '<receiver: hasNext() on IntCell: Boolean>' type=IntCell origin=null
$this: GET_VAR 'this@hasNext: IntCell' type=IntCell origin=null
other: CONST Int type=kotlin.Int value='0'
FUN public open operator fun IntCell.next(): kotlin.Int
$this: VALUE_PARAMETER <receiver: IReceiver>
$receiver: VALUE_PARAMETER <receiver: next() on IntCell: Int>
$this: VALUE_PARAMETER this@IReceiver: IReceiver
$receiver: VALUE_PARAMETER this@next: IntCell
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
GET_VAR '<receiver: next() on IntCell: Int>' type=IntCell origin=null
GET_VAR 'this@next: IntCell' 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
@@ -74,21 +74,21 @@ FILE /forWithImplicitReceivers.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
FUN public fun IReceiver.test(): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test() on IReceiver: Unit>
$receiver: VALUE_PARAMETER this@test: IReceiver
BLOCK_BODY
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: GET_VAR '<receiver: test() on IReceiver: Unit>' type=IReceiver origin=null
$this: GET_VAR 'this@test: IReceiver' 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: GET_VAR '<receiver: test() on IReceiver: Unit>' type=IReceiver origin=null
$this: GET_VAR 'this@test: IReceiver' 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: GET_VAR '<receiver: test() on IReceiver: Unit>' type=IReceiver origin=null
$this: GET_VAR 'this@test: IReceiver' 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
@@ -1,10 +1,10 @@
FILE /genericPropertyCall.kt
PROPERTY public val <T> T.id: T
FUN public fun T.<get-id>(): T
$receiver: VALUE_PARAMETER <receiver: id: T on T>
$receiver: VALUE_PARAMETER this@id: T
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-id>() on T: T'
GET_VAR '<receiver: id: T on T>' type=T origin=null
GET_VAR 'this@id: T' type=T origin=null
PROPERTY public val test: kotlin.String
FIELD PROPERTY_BACKING_FIELD public val test: kotlin.String
EXPRESSION_BODY
@@ -1,6 +1,6 @@
FILE /Derived.kt
CLASS CLASS Derived
$new: VALUE_PARAMETER <receiver: Derived>
$new: VALUE_PARAMETER this@Derived: Derived
CONSTRUCTOR public constructor Derived()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Base()'
@@ -8,20 +8,20 @@ FILE /Derived.kt
ANONYMOUS_INITIALIZER Derived
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=EQ
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null
value: CONST Int type=kotlin.Int value='0'
FUN public final fun getValue(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Derived>
$this: VALUE_PARAMETER this@Derived: Derived
BLOCK_BODY
RETURN type=kotlin.Nothing from='getValue(): Int'
GET_FIELD 'value: Int' type=kotlin.Int origin=GET_PROPERTY
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null
FUN public final fun setValue(value: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Derived>
$this: VALUE_PARAMETER this@Derived: Derived
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=EQ
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null
value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null
PROPERTY FAKE_OVERRIDE public final override var value: kotlin.Int
FIELD FAKE_OVERRIDE public final override var value: kotlin.Int
@@ -22,7 +22,7 @@ FILE /jvmStaticFieldReference.kt
GET_FIELD 'out: PrintStream!' type=java.io.PrintStream! origin=GET_PROPERTY
p0: CONST String type=kotlin.String value='testProp/set'
CLASS CLASS TestClass
$new: VALUE_PARAMETER <receiver: TestClass>
$new: VALUE_PARAMETER this@TestClass: TestClass
CONSTRUCTOR public constructor TestClass()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -40,11 +40,11 @@ FILE /jvmStaticFieldReference.kt
p0: CONST String type=kotlin.String value='TestClass/test'
CONST Int type=kotlin.Int value='42'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-test>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: TestClass>
$this: VALUE_PARAMETER this@TestClass: TestClass
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test>(): Int'
GET_FIELD 'test: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: TestClass>' type=TestClass origin=null
receiver: GET_VAR 'this@TestClass: TestClass' type=TestClass origin=null
ANONYMOUS_INITIALIZER TestClass
BLOCK_BODY
CALL 'println(String!): Unit' type=kotlin.Unit origin=null
+14 -14
View File
@@ -1,6 +1,6 @@
FILE /kt16904.kt
CLASS CLASS A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR public constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -10,60 +10,60 @@ FILE /kt16904.kt
EXPRESSION_BODY
CALL 'constructor B()' type=B origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): B
$this: VALUE_PARAMETER <receiver: A>
$this: VALUE_PARAMETER this@A: A
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): B'
GET_FIELD 'x: B' type=B origin=null
receiver: GET_VAR '<receiver: A>' type=A origin=null
receiver: GET_VAR 'this@A: A' type=A origin=null
PROPERTY public final var y: kotlin.Int
FIELD PROPERTY_BACKING_FIELD public final var y: kotlin.Int
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-y>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: A>
$this: VALUE_PARAMETER this@A: A
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-y>(): Int'
GET_FIELD 'y: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: A>' type=A origin=null
receiver: GET_VAR 'this@A: A' type=A origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-y>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: A>
$this: VALUE_PARAMETER this@A: A
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'y: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: A>' type=A origin=null
receiver: GET_VAR 'this@A: A' type=A origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS B
$new: VALUE_PARAMETER <receiver: B>
$new: VALUE_PARAMETER this@B: B
CONSTRUCTOR public constructor B()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='B'
FUN public final operator fun plusAssign(x: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: B>
$this: VALUE_PARAMETER this@B: B
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS Test1
$new: VALUE_PARAMETER <receiver: Test1>
$new: VALUE_PARAMETER this@Test1: Test1
CONSTRUCTOR public constructor Test1()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor A()'
INSTANCE_INITIALIZER_CALL classDescriptor='Test1'
BLOCK type=kotlin.Unit origin=PLUSEQ
VAR IR_TEMPORARY_VARIABLE val tmp0_this: Test1
GET_VAR '<receiver: Test1>' type=Test1 origin=null
GET_VAR 'this@Test1: Test1' type=Test1 origin=null
CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: CALL '<get-x>(): B' type=B origin=PLUSEQ
$this: GET_VAR 'tmp0_this: Test1' type=Test1 origin=null
x: CONST Int type=kotlin.Int value='42'
BLOCK type=kotlin.Unit origin=PLUSEQ
VAR IR_TEMPORARY_VARIABLE val tmp1_this: Test1
GET_VAR '<receiver: Test1>' type=Test1 origin=null
GET_VAR 'this@Test1: Test1' type=Test1 origin=null
CALL '<set-y>(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR 'tmp1_this: Test1' type=Test1 origin=null
<set-?>: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ
@@ -79,7 +79,7 @@ FILE /kt16904.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS Test2
$new: VALUE_PARAMETER <receiver: Test2>
$new: VALUE_PARAMETER this@Test2: Test2
CONSTRUCTOR public constructor Test2()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor J()'
@@ -87,7 +87,7 @@ FILE /kt16904.kt
ANONYMOUS_INITIALIZER Test2
BLOCK_BODY
SET_FIELD 'field: Int' type=kotlin.Unit origin=EQ
receiver: GET_VAR '<receiver: Test2>' type=Test2 origin=null
receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null
value: CONST Int type=kotlin.Int value='42'
PROPERTY FAKE_OVERRIDE public final override var field: kotlin.Int
FIELD FAKE_OVERRIDE public final override var field: kotlin.Int
+9 -9
View File
@@ -1,14 +1,14 @@
FILE /kt16905.kt
CLASS CLASS Outer
$new: VALUE_PARAMETER <receiver: Outer>
$new: VALUE_PARAMETER this@Outer: Outer
CONSTRUCTOR public constructor Outer()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Outer'
CLASS CLASS Inner
$new: VALUE_PARAMETER <receiver: Inner>
$new: VALUE_PARAMETER this@Inner: Inner
CONSTRUCTOR public constructor Inner()
$outer: VALUE_PARAMETER <receiver: Outer>
$outer: VALUE_PARAMETER this@Outer: Outer
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Inner'
@@ -16,23 +16,23 @@ FILE /kt16905.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS InnerDerived0
$new: VALUE_PARAMETER <receiver: InnerDerived0>
$new: VALUE_PARAMETER this@InnerDerived0: InnerDerived0
CONSTRUCTOR public constructor InnerDerived0()
$outer: VALUE_PARAMETER <receiver: Outer>
$outer: VALUE_PARAMETER this@Outer: Outer
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Inner()'
$this: GET_VAR '<receiver: Outer>' type=Outer origin=null
$this: GET_VAR 'this@Outer: Outer' type=Outer origin=null
INSTANCE_INITIALIZER_CALL classDescriptor='InnerDerived0'
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS CLASS InnerDerived1
$new: VALUE_PARAMETER <receiver: InnerDerived1>
$new: VALUE_PARAMETER this@InnerDerived1: InnerDerived1
CONSTRUCTOR public constructor InnerDerived1()
$outer: VALUE_PARAMETER <receiver: Outer>
$outer: VALUE_PARAMETER this@Outer: Outer
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Inner()'
$this: GET_VAR '<receiver: Outer>' type=Outer origin=null
$this: GET_VAR 'this@Outer: Outer' type=Outer origin=null
INSTANCE_INITIALIZER_CALL classDescriptor='InnerDerived1'
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
@@ -1,18 +1,18 @@
FILE /membersImportedFromObject.kt
CLASS OBJECT A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR private constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='A'
FUN public final fun foo(): kotlin.Int
$this: VALUE_PARAMETER <receiver: A>
$this: VALUE_PARAMETER this@A: A
BLOCK_BODY
RETURN type=kotlin.Nothing from='foo(): Int'
CONST Int type=kotlin.Int value='1'
FUN public final fun kotlin.Int.fooExt(): kotlin.Int
$this: VALUE_PARAMETER <receiver: A>
$receiver: VALUE_PARAMETER <receiver: fooExt() on Int: Int>
$this: VALUE_PARAMETER this@A: A
$receiver: VALUE_PARAMETER this@fooExt: Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='fooExt() on Int: Int'
CONST Int type=kotlin.Int value='2'
@@ -21,15 +21,15 @@ FILE /membersImportedFromObject.kt
EXPRESSION_BODY
CONST Int type=kotlin.Int value='42'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-bar>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: A>
$this: VALUE_PARAMETER this@A: A
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-bar>(): Int'
GET_FIELD 'bar: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: A>' type=A origin=null
receiver: GET_VAR 'this@A: A' type=A origin=null
PROPERTY public final val kotlin.Int.barExt: kotlin.Int
FUN public final fun kotlin.Int.<get-barExt>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: A>
$receiver: VALUE_PARAMETER <receiver: barExt: Int on Int>
$this: VALUE_PARAMETER this@A: A
$receiver: VALUE_PARAMETER this@barExt: Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-barExt>() on Int: Int'
CONST Int type=kotlin.Int value='43'
@@ -1,6 +1,6 @@
FILE /objectAsCallable.kt
CLASS OBJECT A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR private constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -9,7 +9,7 @@ FILE /objectAsCallable.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS ENUM_CLASS En
$new: VALUE_PARAMETER <receiver: En>
$new: VALUE_PARAMETER this@En: En
CONSTRUCTOR private constructor En()
BLOCK_BODY
ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)'
@@ -32,13 +32,13 @@ FILE /objectAsCallable.kt
FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): En
SYNTHETIC_BODY kind=ENUM_VALUEOF
FUN public operator fun A.invoke(i: kotlin.Int): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: invoke(Int) on A: Int>
$receiver: VALUE_PARAMETER this@invoke: A
VALUE_PARAMETER value-parameter i: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='invoke(Int) on A: Int'
GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null
FUN public operator fun En.invoke(i: kotlin.Int): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: invoke(Int) on En: Int>
$receiver: VALUE_PARAMETER this@invoke: En
VALUE_PARAMETER value-parameter i: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='invoke(Int) on En: Int'
@@ -1,6 +1,6 @@
FILE /objectClassReference.kt
CLASS OBJECT A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR private constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -83,7 +83,7 @@ FILE /primitivesImplicitConversions.kt
$this: CONST Int type=kotlin.Int value='1'
BLOCK_BODY
CLASS CLASS TestImplicitArguments
$new: VALUE_PARAMETER <receiver: TestImplicitArguments>
$new: VALUE_PARAMETER this@TestImplicitArguments: TestImplicitArguments
CONSTRUCTOR public constructor TestImplicitArguments(x: kotlin.Long = ...)
VALUE_PARAMETER value-parameter x: kotlin.Long = ...
EXPRESSION_BODY
@@ -98,11 +98,11 @@ FILE /primitivesImplicitConversions.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: Long = ...' type=kotlin.Long origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Long
$this: VALUE_PARAMETER <receiver: TestImplicitArguments>
$this: VALUE_PARAMETER this@TestImplicitArguments: TestImplicitArguments
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Long'
GET_FIELD 'x: Long' type=kotlin.Long origin=null
receiver: GET_VAR '<receiver: TestImplicitArguments>' type=TestImplicitArguments origin=null
receiver: GET_VAR 'this@TestImplicitArguments: TestImplicitArguments' type=TestImplicitArguments origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
+3 -3
View File
@@ -41,13 +41,13 @@ FILE /references.kt
CALL '<get-ok3>(): String' type=kotlin.String origin=GET_PROPERTY
PROPERTY public val kotlin.String.okext: kotlin.String
FUN public fun kotlin.String.<get-okext>(): kotlin.String
$receiver: VALUE_PARAMETER <receiver: okext: String on String>
$receiver: VALUE_PARAMETER this@okext: String
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-okext>() on String: String'
CONST String type=kotlin.String value='OK'
FUN public fun kotlin.String.test5(): kotlin.String
$receiver: VALUE_PARAMETER <receiver: test5() on String: String>
$receiver: VALUE_PARAMETER this@test5: String
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5() on String: String'
CALL '<get-okext>() on String: String' type=kotlin.String origin=GET_PROPERTY
$receiver: GET_VAR '<receiver: test5() on String: String>' type=kotlin.String origin=null
$receiver: GET_VAR 'this@test5: String' type=kotlin.String origin=null
@@ -1,12 +1,12 @@
FILE /reflectionLiterals.kt
CLASS CLASS A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR public constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='A'
FUN public final fun foo(): kotlin.Unit
$this: VALUE_PARAMETER <receiver: A>
$this: VALUE_PARAMETER this@A: A
BLOCK_BODY
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
+5 -5
View File
@@ -1,6 +1,6 @@
FILE /safeAssignment.kt
CLASS CLASS C
$new: VALUE_PARAMETER <receiver: C>
$new: VALUE_PARAMETER this@C: C
CONSTRUCTOR public constructor C(x: kotlin.Int)
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
@@ -11,17 +11,17 @@ FILE /safeAssignment.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: C>
$this: VALUE_PARAMETER this@C: C
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Int'
GET_FIELD 'x: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: C>' type=C origin=null
receiver: GET_VAR 'this@C: C' type=C origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: C>
$this: VALUE_PARAMETER this@C: C
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'x: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: C>' type=C origin=null
receiver: GET_VAR 'this@C: C' type=C origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
@@ -1,6 +1,6 @@
FILE /safeCallWithIncrementDecrement.kt
CLASS CLASS C
$new: VALUE_PARAMETER <receiver: C>
$new: VALUE_PARAMETER this@C: C
CONSTRUCTOR public constructor C()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -10,21 +10,21 @@ FILE /safeCallWithIncrementDecrement.kt
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
PROPERTY public var test.C?.p: kotlin.Int
FUN public fun test.C?.<get-p>(): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: p: Int on C?>
$receiver: VALUE_PARAMETER this@p: C?
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-p>() on C?: Int'
CONST Int type=kotlin.Int value='42'
FUN public fun test.C?.<set-p>(value: kotlin.Int): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: p: Int on C?>
$receiver: VALUE_PARAMETER this@p: C?
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
FUN public operator fun kotlin.Int?.inc(): kotlin.Int?
$receiver: VALUE_PARAMETER <receiver: inc() on Int?: Int?>
$receiver: VALUE_PARAMETER this@inc: Int?
BLOCK_BODY
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?
GET_VAR '<receiver: inc() on Int?: Int?>' type=kotlin.Int? origin=null
GET_VAR 'this@inc: 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
@@ -36,13 +36,13 @@ FILE /safeCallWithIncrementDecrement.kt
then: CALL 'inc(): Int' type=kotlin.Int origin=null
$this: GET_VAR 'tmp0_safe_receiver: Int?' type=kotlin.Int? origin=null
FUN public operator fun kotlin.Int?.get(index: kotlin.Int): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: get(Int) on Int?: Int>
$receiver: VALUE_PARAMETER this@get: Int?
VALUE_PARAMETER value-parameter index: kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='get(Int) on Int?: Int'
CONST Int type=kotlin.Int value='42'
FUN public operator fun kotlin.Int?.set(index: kotlin.Int, value: kotlin.Int): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: set(Int, Int) on Int?: Unit>
$receiver: VALUE_PARAMETER this@set: Int?
VALUE_PARAMETER value-parameter index: kotlin.Int
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
+11 -11
View File
@@ -1,6 +1,6 @@
FILE /safeCalls.kt
CLASS CLASS Ref
$new: VALUE_PARAMETER <receiver: Ref>
$new: VALUE_PARAMETER this@Ref: Ref
CONSTRUCTOR public constructor Ref(value: kotlin.Int)
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
@@ -11,29 +11,29 @@ FILE /safeCalls.kt
EXPRESSION_BODY
GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-value>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Ref>
$this: VALUE_PARAMETER this@Ref: Ref
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-value>(): Int'
GET_FIELD 'value: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
receiver: GET_VAR 'this@Ref: Ref' type=Ref origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-value>(<set-?>: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Ref>
$this: VALUE_PARAMETER this@Ref: Ref
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: Ref>' type=Ref origin=null
receiver: GET_VAR 'this@Ref: Ref' type=Ref origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS INTERFACE IHost
FUN public open fun kotlin.String.extLength(): kotlin.Int
$this: VALUE_PARAMETER <receiver: IHost>
$receiver: VALUE_PARAMETER <receiver: extLength() on String: Int>
$this: VALUE_PARAMETER this@IHost: IHost
$receiver: VALUE_PARAMETER this@extLength: String
BLOCK_BODY
RETURN type=kotlin.Nothing from='extLength() on String: Int'
CALL '<get-length>(): Int' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR '<receiver: extLength() on String: Int>' type=kotlin.String origin=null
$this: GET_VAR 'this@extLength: String' type=kotlin.String origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
@@ -109,7 +109,7 @@ FILE /safeCalls.kt
$this: GET_VAR 'tmp0_safe_receiver: Ref?' type=Ref? origin=null
<set-?>: CONST Int type=kotlin.Int value='0'
FUN public fun IHost.test5(s: kotlin.String?): kotlin.Int?
$receiver: VALUE_PARAMETER <receiver: test5(String?) on IHost: Int?>
$receiver: VALUE_PARAMETER this@test5: IHost
VALUE_PARAMETER value-parameter s: kotlin.String?
BLOCK_BODY
RETURN type=kotlin.Nothing from='test5(String?) on IHost: Int?'
@@ -125,10 +125,10 @@ FILE /safeCalls.kt
BRANCH
if: CONST Boolean type=kotlin.Boolean value='true'
then: CALL 'extLength() on String: Int' type=kotlin.Int origin=null
$this: GET_VAR '<receiver: test5(String?) on IHost: Int?>' type=IHost origin=null
$this: GET_VAR 'this@test5: IHost' type=IHost origin=null
$receiver: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null
FUN public fun kotlin.Int.foo(): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: foo() on Int: Int>
$receiver: VALUE_PARAMETER this@foo: Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='foo() on Int: Int'
CONST Int type=kotlin.Int value='239'
@@ -1,12 +1,12 @@
FILE /Derived.kt
CLASS CLASS Derived
$new: VALUE_PARAMETER <receiver: Derived>
$new: VALUE_PARAMETER this@Derived: Derived
CONSTRUCTOR public constructor Derived()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Base()'
INSTANCE_INITIALIZER_CALL classDescriptor='Derived'
FUN public final fun setValue(v: kotlin.Any): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Derived>
$this: VALUE_PARAMETER this@Derived: Derived
VALUE_PARAMETER value-parameter v: kotlin.Any
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
@@ -15,7 +15,7 @@ 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: GET_VAR '<receiver: Derived>' type=Derived origin=null
receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null
value: TYPE_OP type=kotlin.String! origin=IMPLICIT_CAST typeOperand=kotlin.String!
GET_VAR 'value-parameter v: Any' type=kotlin.Any origin=null
PROPERTY FAKE_OVERRIDE public final override var value: kotlin.String!
@@ -8,12 +8,12 @@ FILE /smartCastsWithDestructuring.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
FUN public operator fun I1.component1(): kotlin.Int
$receiver: VALUE_PARAMETER <receiver: component1() on I1: Int>
$receiver: VALUE_PARAMETER this@component1: I1
BLOCK_BODY
RETURN type=kotlin.Nothing from='component1() on I1: Int'
CONST Int type=kotlin.Int value='1'
FUN public operator fun I2.component2(): kotlin.String
$receiver: VALUE_PARAMETER <receiver: component2() on I2: String>
$receiver: VALUE_PARAMETER this@component2: I2
BLOCK_BODY
RETURN type=kotlin.Nothing from='component2() on I2: String'
CONST String type=kotlin.String value=''
+4 -4
View File
@@ -1,6 +1,6 @@
FILE /values.kt
CLASS ENUM_CLASS Enum
$new: VALUE_PARAMETER <receiver: Enum>
$new: VALUE_PARAMETER this@Enum: Enum
CONSTRUCTOR private constructor Enum()
BLOCK_BODY
ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)'
@@ -23,7 +23,7 @@ FILE /values.kt
FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): Enum
SYNTHETIC_BODY kind=ENUM_VALUEOF
CLASS OBJECT A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR private constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -40,13 +40,13 @@ FILE /values.kt
RETURN type=kotlin.Nothing from='<get-a>(): Int'
GET_FIELD 'a: Int' type=kotlin.Int origin=null
CLASS CLASS Z
$new: VALUE_PARAMETER <receiver: Z>
$new: VALUE_PARAMETER this@Z: Z
CONSTRUCTOR public constructor Z()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Z'
CLASS OBJECT companion object of Z
$new: VALUE_PARAMETER <receiver: companion object of Z>
$new: VALUE_PARAMETER this@Companion: Companion
CONSTRUCTOR private constructor Companion()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -1,13 +1,13 @@
FILE /variableAsFunctionCall.kt
FUN public fun kotlin.String.k(): () -> kotlin.String
$receiver: VALUE_PARAMETER <receiver: k() on String: () -> String>
$receiver: VALUE_PARAMETER this@k: String
BLOCK_BODY
RETURN type=kotlin.Nothing from='k() on String: () -> String'
BLOCK type=() -> kotlin.String origin=LAMBDA
FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun <anonymous>(): kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='<anonymous>(): String'
GET_VAR '<receiver: k() on String: () -> String>' type=kotlin.String origin=null
GET_VAR 'this@k: String' type=kotlin.String origin=null
FUNCTION_REFERENCE '<anonymous>(): String' type=() -> kotlin.String origin=LAMBDA
FUN public fun test1(f: () -> kotlin.Unit): kotlin.Unit
VALUE_PARAMETER value-parameter f: () -> kotlin.Unit
+1 -1
View File
@@ -1,6 +1,6 @@
FILE /when.kt
CLASS OBJECT A
$new: VALUE_PARAMETER <receiver: A>
$new: VALUE_PARAMETER this@A: A
CONSTRUCTOR private constructor A()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'