Files
kotlin-fork/compiler/testData/ir/irText/expressions/destructuring1.txt
T
2018-01-17 12:31:07 +03:00

55 lines
3.4 KiB
Plaintext
Vendored

FILE fqName:<root> fileName:/destructuring1.kt
CLASS OBJECT name:A modality:FINAL visibility:public flags:
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:A flags:
CONSTRUCTOR visibility:private <> () returnType:A flags:
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='A'
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags:
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:
VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags:
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:
CLASS OBJECT name:B modality:FINAL visibility:public flags:
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:B flags:
CONSTRUCTOR visibility:private <> () returnType:B flags:
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='B'
FUN name:component1 visibility:public modality:FINAL <> ($this:B, $receiver:A) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:B flags:
$receiver: VALUE_PARAMETER name:<this> type:A flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='component1() on A: Int'
CONST Int type=kotlin.Int value=1
FUN name:component2 visibility:public modality:FINAL <> ($this:B, $receiver:A) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:B flags:
$receiver: VALUE_PARAMETER name:<this> type:A flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='component2() on A: Int'
CONST Int type=kotlin.Int value=2
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags:
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:
VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags:
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:
FUN name:test visibility:public modality:FINAL <> ($receiver:B) returnType:Unit flags:
$receiver: VALUE_PARAMETER name:<this> type:B flags:
BLOCK_BODY
COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION
VAR IR_TEMPORARY_VARIABLE name:tmp0_container type:A flags:val
GET_OBJECT 'A' type=A
VAR name:x type:kotlin.Int flags:val
CALL 'component1() on A: Int' type=kotlin.Int origin=COMPONENT_N(index=1)
$this: GET_VAR 'this@test: B' type=B origin=null
$receiver: GET_VAR 'tmp0_container: A' type=A origin=null
VAR name:y type:kotlin.Int flags:val
CALL 'component2() on A: Int' type=kotlin.Int origin=COMPONENT_N(index=2)
$this: GET_VAR 'this@test: B' type=B origin=null
$receiver: GET_VAR 'tmp0_container: A' type=A origin=null