Introduce IrGetValue as a replacement for IrThisReference / IrGetExtensionReceiver / IrGetVariable.
This commit is contained in:
+3
-3
@@ -13,7 +13,7 @@ FILE /secondaryConstructorWithInitializersFromClassBody.kt
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): Int'
|
||||
GET_FIELD 'x: Int' type=kotlin.Int origin=null
|
||||
receiver: THIS of 'TestProperty' type=TestProperty
|
||||
receiver: GET_VAR '<receiver: TestProperty>' type=TestProperty origin=null
|
||||
CONSTRUCTOR public constructor TestProperty()
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Base()'
|
||||
@@ -25,11 +25,11 @@ FILE /secondaryConstructorWithInitializersFromClassBody.kt
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): Int'
|
||||
GET_FIELD 'x: Int' type=kotlin.Int origin=null
|
||||
receiver: THIS of 'TestInitBlock' type=TestInitBlock
|
||||
receiver: GET_VAR '<receiver: TestInitBlock>' type=TestInitBlock origin=null
|
||||
ANONYMOUS_INITIALIZER TestInitBlock
|
||||
BLOCK_BODY
|
||||
SET_FIELD 'x: Int' type=kotlin.Unit origin=null
|
||||
receiver: THIS of 'TestInitBlock' type=TestInitBlock
|
||||
receiver: GET_VAR '<receiver: TestInitBlock>' type=TestInitBlock origin=null
|
||||
value: CONST Int type=kotlin.Int value='0'
|
||||
CONSTRUCTOR public constructor TestInitBlock()
|
||||
BLOCK_BODY
|
||||
|
||||
Reference in New Issue
Block a user