IR: don't use descriptors in rendering (work in progress)

There's some descriptor-based code remaining. Need some more work on IR.
This commit is contained in:
Dmitry Petrov
2019-03-14 14:17:26 +03:00
parent bd3d5a9dbb
commit e49eae528c
319 changed files with 18613 additions and 18703 deletions
@@ -1,97 +1,97 @@
@0:0..13:23 FILE fqName:<root> fileName:/primaryConstructors.kt
@0:0..23 CLASS CLASS name:Test1 modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@0:0..23 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test1 flags:
@0:0..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test1 flags:primary
@0:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:
@0:0..23 CLASS CLASS name:Test1 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]
@0:0..23 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test1 flags:[]
@0:0..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:<root>.Test1 flags:[primary]
@0:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]
@0:0..23 BLOCK_BODY
@0:0..23 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@0:0..23 INSTANCE_INITIALIZER_CALL classDescriptor='Test1'
@0:12..22 PROPERTY name:x visibility:public modality:FINAL flags:val
@0:12..22 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final
@0:0..23 DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
@0:0..23 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]'
@0:12..22 PROPERTY name:x visibility:public modality:FINAL flags:[val]
@0:12..22 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]
@0:12..22 EXPRESSION_BODY
@0:12..22 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@0:12..22 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Test1) returnType:kotlin.Int flags:
@0:12..22 VALUE_PARAMETER name:<this> type:Test1 flags:
@0:12..22 GET_VAR 'VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@0:12..22 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Test1) returnType:kotlin.Int flags:[]
@0:12..22 VALUE_PARAMETER name:<this> type:<root>.Test1 flags:[]
@0:12..22 BLOCK_BODY
@0:12..22 RETURN type=kotlin.Nothing from='<get-x>(): Int'
@0:12..22 GET_FIELD 'x: Int' type=kotlin.Int origin=null
@0:12..22 GET_VAR 'this@Test1: Test1' type=Test1 origin=null
@0:0..23 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@0:0..23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@0:0..23 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@0:0..23 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@0:0..23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@0:0..23 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@0:0..23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@2:0..3:32 CLASS CLASS name:Test2 modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@2:0..3:32 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test2 flags:
@3:9..32 CONSTRUCTOR visibility:internal <> (x:kotlin.Int) returnType:Test2 flags:primary
@3:21..31 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:
@0:12..22 RETURN type=kotlin.Nothing from='FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Test1) returnType:kotlin.Int flags:[]'
@0:12..22 GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]' type=kotlin.Int origin=null
@0:12..22 GET_VAR 'VALUE_PARAMETER name:<this> type:<root>.Test1 flags:[]' type=<root>.Test1 origin=null
@0:0..23 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
@0:0..23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@0:0..23 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
@0:0..23 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
@0:0..23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@0:0..23 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
@0:0..23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@2:0..3:32 CLASS CLASS name:Test2 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]
@2:0..3:32 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test2 flags:[]
@3:9..32 CONSTRUCTOR visibility:internal <> (x:kotlin.Int) returnType:<root>.Test2 flags:[primary]
@3:21..31 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]
@2:0..3:32 BLOCK_BODY
@2:0..3:32 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@2:0..3:32 INSTANCE_INITIALIZER_CALL classDescriptor='Test2'
@3:21..31 PROPERTY name:x visibility:public modality:FINAL flags:val
@3:21..31 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final
@2:0..3:32 DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
@2:0..3:32 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]'
@3:21..31 PROPERTY name:x visibility:public modality:FINAL flags:[val]
@3:21..31 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]
@3:21..31 EXPRESSION_BODY
@3:21..31 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@3:21..31 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Test2) returnType:kotlin.Int flags:
@3:21..31 VALUE_PARAMETER name:<this> type:Test2 flags:
@3:21..31 GET_VAR 'VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@3:21..31 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Test2) returnType:kotlin.Int flags:[]
@3:21..31 VALUE_PARAMETER name:<this> type:<root>.Test2 flags:[]
@3:21..31 BLOCK_BODY
@3:21..31 RETURN type=kotlin.Nothing from='<get-x>(): Int'
@3:21..31 GET_FIELD 'x: Int' type=kotlin.Int origin=null
@3:21..31 GET_VAR 'this@Test2: Test2' type=Test2 origin=null
@2:0..3:32 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@2:0..3:32 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@2:0..3:32 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@2:0..3:32 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@2:0..3:32 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@2:0..3:32 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@2:0..3:32 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@5:0..9:23 CLASS CLASS name:Test3 modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@5:0..9:23 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test3 flags:
@9:0..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test3 flags:primary
@9:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:
@3:21..31 RETURN type=kotlin.Nothing from='FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Test2) returnType:kotlin.Int flags:[]'
@3:21..31 GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]' type=kotlin.Int origin=null
@3:21..31 GET_VAR 'VALUE_PARAMETER name:<this> type:<root>.Test2 flags:[]' type=<root>.Test2 origin=null
@2:0..3:32 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
@2:0..3:32 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@2:0..3:32 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
@2:0..3:32 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
@2:0..3:32 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@2:0..3:32 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
@2:0..3:32 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@5:0..9:23 CLASS CLASS name:Test3 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]
@5:0..9:23 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test3 flags:[]
@9:0..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:<root>.Test3 flags:[primary]
@9:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]
@5:0..9:23 BLOCK_BODY
@5:0..9:23 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@5:0..9:23 INSTANCE_INITIALIZER_CALL classDescriptor='Test3'
@9:12..22 PROPERTY name:x visibility:public modality:FINAL flags:val
@9:12..22 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final
@5:0..9:23 DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
@5:0..9:23 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]'
@9:12..22 PROPERTY name:x visibility:public modality:FINAL flags:[val]
@9:12..22 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]
@9:12..22 EXPRESSION_BODY
@9:12..22 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@9:12..22 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Test3) returnType:kotlin.Int flags:
@9:12..22 VALUE_PARAMETER name:<this> type:Test3 flags:
@9:12..22 GET_VAR 'VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@9:12..22 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Test3) returnType:kotlin.Int flags:[]
@9:12..22 VALUE_PARAMETER name:<this> type:<root>.Test3 flags:[]
@9:12..22 BLOCK_BODY
@9:12..22 RETURN type=kotlin.Nothing from='<get-x>(): Int'
@9:12..22 GET_FIELD 'x: Int' type=kotlin.Int origin=null
@9:12..22 GET_VAR 'this@Test3: Test3' type=Test3 origin=null
@5:0..9:23 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@5:0..9:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@5:0..9:23 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@5:0..9:23 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@5:0..9:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@5:0..9:23 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@5:0..9:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@11:0..13:23 CLASS CLASS name:Test4 modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@11:0..13:23 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test4 flags:
@13:0..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test4 flags:primary
@13:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:
@9:12..22 RETURN type=kotlin.Nothing from='FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Test3) returnType:kotlin.Int flags:[]'
@9:12..22 GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]' type=kotlin.Int origin=null
@9:12..22 GET_VAR 'VALUE_PARAMETER name:<this> type:<root>.Test3 flags:[]' type=<root>.Test3 origin=null
@5:0..9:23 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
@5:0..9:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@5:0..9:23 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
@5:0..9:23 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
@5:0..9:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@5:0..9:23 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
@5:0..9:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@11:0..13:23 CLASS CLASS name:Test4 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]
@11:0..13:23 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test4 flags:[]
@13:0..23 CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:<root>.Test4 flags:[primary]
@13:12..22 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]
@11:0..13:23 BLOCK_BODY
@11:0..13:23 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@11:0..13:23 INSTANCE_INITIALIZER_CALL classDescriptor='Test4'
@13:12..22 PROPERTY name:x visibility:public modality:FINAL flags:val
@13:12..22 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:final
@11:0..13:23 DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
@11:0..13:23 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test4 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]'
@13:12..22 PROPERTY name:x visibility:public modality:FINAL flags:[val]
@13:12..22 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]
@13:12..22 EXPRESSION_BODY
@13:12..22 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@13:12..22 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Test4) returnType:kotlin.Int flags:
@13:12..22 VALUE_PARAMETER name:<this> type:Test4 flags:
@13:12..22 GET_VAR 'VALUE_PARAMETER name:x index:0 type:kotlin.Int flags:[]' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
@13:12..22 FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Test4) returnType:kotlin.Int flags:[]
@13:12..22 VALUE_PARAMETER name:<this> type:<root>.Test4 flags:[]
@13:12..22 BLOCK_BODY
@13:12..22 RETURN type=kotlin.Nothing from='<get-x>(): Int'
@13:12..22 GET_FIELD 'x: Int' type=kotlin.Int origin=null
@13:12..22 GET_VAR 'this@Test4: Test4' type=Test4 origin=null
@11:0..13:23 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@11:0..13:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@11:0..13:23 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@11:0..13:23 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@11:0..13:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@11:0..13:23 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@11:0..13:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@13:12..22 RETURN type=kotlin.Nothing from='FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Test4) returnType:kotlin.Int flags:[]'
@13:12..22 GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public flags:[final]' type=kotlin.Int origin=null
@13:12..22 GET_VAR 'VALUE_PARAMETER name:<this> type:<root>.Test4 flags:[]' type=<root>.Test4 origin=null
@11:0..13:23 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
@11:0..13:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@11:0..13:23 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
@11:0..13:23 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
@11:0..13:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@11:0..13:23 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
@11:0..13:23 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]