Introduce IrGetValue as a replacement for IrThisReference / IrGetExtensionReceiver / IrGetVariable.
This commit is contained in:
@@ -12,7 +12,7 @@ FILE /enumWithSecondaryCtor.kt
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): Int'
|
||||
GET_FIELD 'x: Int' type=kotlin.Int origin=null
|
||||
receiver: THIS of 'Test0' type=Test0
|
||||
receiver: GET_VAR '<receiver: Test0>' type=Test0 origin=null
|
||||
ENUM_ENTRY enum entry ZERO
|
||||
init: ENUM_CONSTRUCTOR_CALL 'constructor Test0()'
|
||||
CONSTRUCTOR private constructor Test0()
|
||||
@@ -36,7 +36,7 @@ FILE /enumWithSecondaryCtor.kt
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): Int'
|
||||
GET_FIELD 'x: Int' type=kotlin.Int origin=null
|
||||
receiver: THIS of 'Test1' type=Test1
|
||||
receiver: GET_VAR '<receiver: Test1>' type=Test1 origin=null
|
||||
ENUM_ENTRY enum entry ZERO
|
||||
init: ENUM_CONSTRUCTOR_CALL 'constructor Test1()'
|
||||
ENUM_ENTRY enum entry ONE
|
||||
@@ -63,7 +63,7 @@ FILE /enumWithSecondaryCtor.kt
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): Int'
|
||||
GET_FIELD 'x: Int' type=kotlin.Int origin=null
|
||||
receiver: THIS of 'Test2' type=Test2
|
||||
receiver: GET_VAR '<receiver: Test2>' type=Test2 origin=null
|
||||
ENUM_ENTRY enum entry ZERO
|
||||
init: ENUM_CONSTRUCTOR_CALL 'constructor ZERO()'
|
||||
class: CLASS ENUM_ENTRY ZERO
|
||||
|
||||
Reference in New Issue
Block a user