Files
kotlin-fork/compiler/testData/ir/irText/expressions/assignments.txt
T
2016-10-18 09:09:04 +03:00

28 lines
1.3 KiB
Plaintext
Vendored

FILE /assignments.kt
CLASS CLASS Ref
CONSTRUCTOR public constructor Ref(x: kotlin.Int)
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
SET_BACKING_FIELD 'x: Int' type=kotlin.Unit operator=null
receiver: THIS of 'Ref' type=Ref
value: GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
INSTANCE_INITIALIZER_CALL classDescriptor='Ref'
PROPERTY public final var x: kotlin.Int
EXPRESSION_BODY
GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN public fun test1(): kotlin.Unit
BLOCK_BODY
VAR var x: kotlin.Int
CONST Int type=kotlin.Int value='0'
SET_VAR 'x: Int' type=kotlin.Unit operator=EQ
CONST Int type=kotlin.Int value='1'
SET_VAR 'x: Int' type=kotlin.Unit operator=EQ
CALL 'plus(Int): Int' type=kotlin.Int operator=PLUS
$this: GET_VAR 'x: Int' type=kotlin.Int operator=null
other: CONST Int type=kotlin.Int value='1'
FUN public fun test2(r: Ref): kotlin.Unit
BLOCK_BODY
CALL '<set-x>(Int): Unit' type=kotlin.Unit operator=EQ
$this: GET_VAR 'value-parameter r: Ref' type=Ref operator=null
<set-?>: CONST Int type=kotlin.Int value='0'