[IR] add JsTextTest for IrScript
This commit is contained in:
committed by
romanart
parent
209a20153e
commit
cf5a1615ea
@@ -0,0 +1,33 @@
|
||||
FILE fqName:<root> fileName:/arrayAssignment.kts
|
||||
SCRIPT
|
||||
FUN name:test visibility:public modality:FINAL <> ($this:<root>.ArrayAssignment) returnType:kotlin.Unit
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.ArrayAssignment
|
||||
BLOCK_BODY
|
||||
VAR name:x type:kotlin.IntArray [val]
|
||||
CALL 'public final fun intArrayOf (vararg elements: kotlin.Int): kotlin.IntArray declared in kotlin' type=kotlin.IntArray origin=null
|
||||
elements: VARARG type=kotlin.IntArray varargElementType=kotlin.Int
|
||||
CONST Int type=kotlin.Int value=1
|
||||
CONST Int type=kotlin.Int value=2
|
||||
CONST Int type=kotlin.Int value=3
|
||||
CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=EQ
|
||||
$this: GET_VAR 'val x: kotlin.IntArray [val] declared in <root>.ArrayAssignment.test' type=kotlin.IntArray origin=null
|
||||
index: CONST Int type=kotlin.Int value=1
|
||||
value: CONST Int type=kotlin.Int value=0
|
||||
FUN name:foo visibility:public modality:FINAL <> ($this:<root>.ArrayAssignment) returnType:kotlin.Int
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.ArrayAssignment
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.Int declared in <root>.ArrayAssignment'
|
||||
CONST Int type=kotlin.Int value=1
|
||||
FUN name:test2 visibility:public modality:FINAL <> ($this:<root>.ArrayAssignment) returnType:kotlin.Unit
|
||||
$this: VALUE_PARAMETER name:<this> type:<root>.ArrayAssignment
|
||||
BLOCK_BODY
|
||||
CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=EQ
|
||||
$this: CALL 'public final fun intArrayOf (vararg elements: kotlin.Int): kotlin.IntArray declared in kotlin' type=kotlin.IntArray origin=null
|
||||
elements: VARARG type=kotlin.IntArray varargElementType=kotlin.Int
|
||||
CONST Int type=kotlin.Int value=1
|
||||
CONST Int type=kotlin.Int value=2
|
||||
CONST Int type=kotlin.Int value=3
|
||||
index: CALL 'public final fun foo (): kotlin.Int declared in <root>.ArrayAssignment' type=kotlin.Int origin=null
|
||||
$this: GET_VAR '<this>: <root>.ArrayAssignment declared in <root>.ArrayAssignment.test2' type=<root>.ArrayAssignment origin=null
|
||||
value: CONST Int type=kotlin.Int value=1
|
||||
VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.ArrayAssignment
|
||||
Reference in New Issue
Block a user