Files
kotlin-fork/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt
T
Dmitry Petrov e49eae528c IR: don't use descriptors in rendering (work in progress)
There's some descriptor-based code remaining. Need some more work on IR.
2019-03-21 11:23:51 +03:00

150 lines
13 KiB
Plaintext
Vendored

FILE fqName:<root> fileName:/argumentReorderingInDelegatingConstructorCall.kt
CLASS CLASS name:Base modality:OPEN visibility:public flags:[] superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Base flags:[]
CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:<root>.Base flags:[primary]
VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]
VALUE_PARAMETER name:y index:1 type:kotlin.Int flags:[]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN visibility:public flags:[] superTypes:[kotlin.Any]'
PROPERTY name:x visibility:public modality:FINAL flags:[val]
FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]
EXPRESSION_BODY
GET_VAR 'VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]
correspondingProperty: PROPERTY name:x visibility:public modality:FINAL flags:[val]
$this: VALUE_PARAMETER name:<this> type:<root>.Base flags:[]
BLOCK_BODY
RETURN type=kotlin.Nothing from='FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]' type=kotlin.Int origin=null
receiver: GET_VAR 'VALUE_PARAMETER name:<this> type:<root>.Base flags:[]' type=<root>.Base origin=null
PROPERTY name:y visibility:public modality:FINAL flags:[val]
FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public flags:[final]
EXPRESSION_BODY
GET_VAR 'VALUE_PARAMETER name:y index:1 type:kotlin.Int flags:[]' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]
correspondingProperty: PROPERTY name:y visibility:public modality:FINAL flags:[val]
$this: VALUE_PARAMETER name:<this> type:<root>.Base flags:[]
BLOCK_BODY
RETURN type=kotlin.Nothing from='FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public flags:[final]' type=kotlin.Int origin=null
receiver: GET_VAR 'VALUE_PARAMETER name:<this> type:<root>.Base flags:[]' type=<root>.Base origin=null
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
overridden:
FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.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:kotlin.Int flags:[]
overridden:
FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
overridden:
FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
CLASS CLASS name:Test1 modality:FINAL visibility:public flags:[] superTypes:[<root>.Base]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test1 flags:[]
CONSTRUCTOR visibility:public <> (xx:kotlin.Int, yy:kotlin.Int) returnType:<root>.Test1 flags:[primary]
VALUE_PARAMETER name:xx index:0 type:kotlin.Int flags:[]
VALUE_PARAMETER name:yy index:1 type:kotlin.Int flags:[]
BLOCK_BODY
BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL
VAR IR_TEMPORARY_VARIABLE name:tmp0_y type:kotlin.Int flags:[val]
GET_VAR 'VALUE_PARAMETER name:yy index:1 type:kotlin.Int flags:[]' type=kotlin.Int origin=null
VAR IR_TEMPORARY_VARIABLE name:tmp1_x type:kotlin.Int flags:[val]
GET_VAR 'VALUE_PARAMETER name:xx index:0 type:kotlin.Int flags:[]' type=kotlin.Int origin=null
DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:<root>.Base flags:[primary]'
x: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp1_x type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
y: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp0_y type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public flags:[] superTypes:[<root>.Base]'
PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL flags:[val]
FIELD FAKE_OVERRIDE name:x type:kotlin.Int visibility:public flags:[final]
overridden:
FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]
FUN FAKE_OVERRIDE name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]
correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL flags:[val]
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]
$this: VALUE_PARAMETER name:<this> type:<root>.Base flags:[]
PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL flags:[val]
FIELD FAKE_OVERRIDE name:y type:kotlin.Int visibility:public flags:[final]
overridden:
FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public flags:[final]
FUN FAKE_OVERRIDE name:<get-y> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]
correspondingProperty: PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL flags:[val]
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]
$this: VALUE_PARAMETER name:<this> type:<root>.Base flags:[]
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
overridden:
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.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:kotlin.Int flags:[]
overridden:
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
overridden:
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
CLASS CLASS name:Test2 modality:FINAL visibility:public flags:[] superTypes:[<root>.Base]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test2 flags:[]
CONSTRUCTOR visibility:public <> (xx:kotlin.Int, yy:kotlin.Int) returnType:<root>.Test2 flags:[]
VALUE_PARAMETER name:xx index:0 type:kotlin.Int flags:[]
VALUE_PARAMETER name:yy index:1 type:kotlin.Int flags:[]
BLOCK_BODY
BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL
VAR IR_TEMPORARY_VARIABLE name:tmp0_y type:kotlin.Int flags:[val]
GET_VAR 'VALUE_PARAMETER name:yy index:1 type:kotlin.Int flags:[]' type=kotlin.Int origin=null
VAR IR_TEMPORARY_VARIABLE name:tmp1_x type:kotlin.Int flags:[val]
GET_VAR 'VALUE_PARAMETER name:xx index:0 type:kotlin.Int flags:[]' type=kotlin.Int origin=null
DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:<root>.Base flags:[primary]'
x: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp1_x type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
y: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp0_y type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public flags:[] superTypes:[<root>.Base]'
CONSTRUCTOR visibility:public <> (xxx:kotlin.Int, yyy:kotlin.Int, a:kotlin.Any) returnType:<root>.Test2 flags:[]
VALUE_PARAMETER name:xxx index:0 type:kotlin.Int flags:[]
VALUE_PARAMETER name:yyy index:1 type:kotlin.Int flags:[]
VALUE_PARAMETER name:a index:2 type:kotlin.Any flags:[]
BLOCK_BODY
BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL
VAR IR_TEMPORARY_VARIABLE name:tmp0_yy type:kotlin.Int flags:[val]
GET_VAR 'VALUE_PARAMETER name:yyy index:1 type:kotlin.Int flags:[]' type=kotlin.Int origin=null
VAR IR_TEMPORARY_VARIABLE name:tmp1_xx type:kotlin.Int flags:[val]
GET_VAR 'VALUE_PARAMETER name:xxx index:0 type:kotlin.Int flags:[]' type=kotlin.Int origin=null
DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR visibility:public <> (xx:kotlin.Int, yy:kotlin.Int) returnType:<root>.Test2 flags:[]'
xx: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp1_xx type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
yy: GET_VAR 'VAR IR_TEMPORARY_VARIABLE name:tmp0_yy type:kotlin.Int flags:[val]' type=kotlin.Int origin=null
PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL flags:[val]
FIELD FAKE_OVERRIDE name:x type:kotlin.Int visibility:public flags:[final]
overridden:
FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]
FUN FAKE_OVERRIDE name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]
correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL flags:[val]
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]
$this: VALUE_PARAMETER name:<this> type:<root>.Base flags:[]
PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL flags:[val]
FIELD FAKE_OVERRIDE name:y type:kotlin.Int visibility:public flags:[final]
overridden:
FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public flags:[final]
FUN FAKE_OVERRIDE name:<get-y> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]
correspondingProperty: PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL flags:[val]
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:FINAL <> ($this:<root>.Base) returnType:kotlin.Int flags:[]
$this: VALUE_PARAMETER name:<this> type:<root>.Base flags:[]
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
overridden:
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.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:kotlin.Int flags:[]
overridden:
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
overridden:
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
$this: VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]