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
+88 -88
View File
@@ -1,96 +1,96 @@
@0:0..22:11 FILE fqName:<root> fileName:/classes.kt
@0:0..11 CLASS CLASS name:Test1 modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@0:0..11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test1 flags:
@0:0..11 CONSTRUCTOR visibility:public <> () returnType:Test1 flags:primary
@0:0..11 CLASS CLASS name:Test1 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]
@0:0..11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test1 flags:[]
@0:0..11 CONSTRUCTOR visibility:public <> () returnType:<root>.Test1 flags:[primary]
@0:0..11 BLOCK_BODY
@0:0..11 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@0:0..11 INSTANCE_INITIALIZER_CALL classDescriptor='Test1'
@0:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@0:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@0:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@0:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@0:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@0:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@0:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@3:0..4:11 CLASS CLASS name:Test2 modality:FINAL visibility:internal flags: superTypes:[kotlin.Any]
@3:0..4:11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test2 flags:
@4:0..11 CONSTRUCTOR visibility:public <> () returnType:Test2 flags:primary
@0:0..11 DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
@0:0..11 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]'
@0:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
@0:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@0:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
@0:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
@0:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@0:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
@0:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@3:0..4:11 CLASS CLASS name:Test2 modality:FINAL visibility:internal flags:[] superTypes:[kotlin.Any]
@3:0..4:11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test2 flags:[]
@4:0..11 CONSTRUCTOR visibility:public <> () returnType:<root>.Test2 flags:[primary]
@3:0..4:11 BLOCK_BODY
@3:0..4:11 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@3:0..4:11 INSTANCE_INITIALIZER_CALL classDescriptor='Test2'
@4:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@3:0..4:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@4:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@4:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@3:0..4:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@4:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@3:0..4:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@10:0..11 CLASS CLASS name:Test3 modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@10:0..11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test3 flags:
@10:0..11 CONSTRUCTOR visibility:public <> () returnType:Test3 flags:primary
@3:0..4:11 DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
@3:0..4:11 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:internal flags:[] superTypes:[kotlin.Any]'
@4:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
@3:0..4:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@4:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
@4:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
@3:0..4:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@4:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
@3:0..4:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@10:0..11 CLASS CLASS name:Test3 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]
@10:0..11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test3 flags:[]
@10:0..11 CONSTRUCTOR visibility:public <> () returnType:<root>.Test3 flags:[primary]
@10:0..11 BLOCK_BODY
@10:0..11 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@10:0..11 INSTANCE_INITIALIZER_CALL classDescriptor='Test3'
@10:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@10:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@10:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@10:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@10:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@10:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@10:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@13:0..14:11 CLASS CLASS name:Test4 modality:FINAL visibility:public flags: superTypes:[kotlin.Any]
@13:0..14:11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test4 flags:
@14:0..11 CONSTRUCTOR visibility:public <> () returnType:Test4 flags:primary
@10:0..11 DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
@10:0..11 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]'
@10:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
@10:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@10:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
@10:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
@10:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@10:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
@10:0..11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@13:0..14:11 CLASS CLASS name:Test4 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]
@13:0..14:11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test4 flags:[]
@14:0..11 CONSTRUCTOR visibility:public <> () returnType:<root>.Test4 flags:[primary]
@13:0..14:11 BLOCK_BODY
@13:0..14:11 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@13:0..14:11 INSTANCE_INITIALIZER_CALL classDescriptor='Test4'
@14:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@13:0..14:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@14:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@14:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@13:0..14:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@14:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@13:0..14:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@17:0..18:11 CLASS ENUM_CLASS name:Test5 modality:FINAL visibility:public flags: superTypes:[kotlin.Enum<Test5>]
@17:0..18:11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test5 flags:
@18:0..11 CONSTRUCTOR visibility:private <> () returnType:Test5 flags:primary
@13:0..14:11 DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
@13:0..14:11 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test4 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Any]'
@14:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
@13:0..14:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@14:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
@14:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
@13:0..14:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@14:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
@13:0..14:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@17:0..18:11 CLASS ENUM_CLASS name:Test5 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Enum<<root>.Test5>]
@17:0..18:11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test5 flags:[]
@18:0..11 CONSTRUCTOR visibility:private <> () returnType:<root>.Test5 flags:[primary]
@17:0..18:11 BLOCK_BODY
@17:0..18:11 ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)'
@17:0..18:11 INSTANCE_INITIALIZER_CALL classDescriptor='Test5'
@18:0..11 FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<Test5>) returnType:kotlin.Any flags:
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<Test5> flags:
@18:0..11 FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<Test5>) returnType:kotlin.Unit flags:
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<Test5> flags:
@18:0..11 FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<Test5>) returnType:java.lang.Class<Test5?>? flags:
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<Test5> flags:
@18:0..11 FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<Test5>, other:Test5) returnType:kotlin.Int flags:
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<Test5> flags:
@18:0..11 VALUE_PARAMETER name:other index:0 type:Test5 flags:
@18:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<Test5>, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<Test5> flags:
@18:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@18:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<Test5>) returnType:kotlin.Int flags:
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<Test5> flags:
@17:0..18:11 PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL flags:val
@18:0..11 FUN FAKE_OVERRIDE name:<get-name> visibility:public modality:FINAL <> ($this:kotlin.Enum<Test5>) returnType:kotlin.String flags:
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<Test5> flags:
@17:0..18:11 PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL flags:val
@18:0..11 FUN FAKE_OVERRIDE name:<get-ordinal> visibility:public modality:FINAL <> ($this:kotlin.Enum<Test5>) returnType:kotlin.Int flags:
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<Test5> flags:
@18:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<Test5>) returnType:kotlin.String flags:
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<Test5> flags:
@17:0..18:11 FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<Test5> flags:
@17:0..18:11 ENUM_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> (name:kotlin.String, ordinal:kotlin.Int) returnType:kotlin.Enum<kotlin.Enum.E> flags:[primary]'
@17:0..18:11 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Test5 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Enum<<root>.Test5>]'
@18:0..11 FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<<root>.Test5>) returnType:kotlin.Any flags:[]
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.Test5> flags:[]
@18:0..11 FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.Test5>) returnType:kotlin.Unit flags:[]
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.Test5> flags:[]
@18:0..11 FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.Test5>) returnType:java.lang.Class<<root>.Test5?>? flags:[]
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.Test5> flags:[]
@18:0..11 FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.Test5>, other:<root>.Test5) returnType:kotlin.Int flags:[]
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.Test5> flags:[]
@18:0..11 VALUE_PARAMETER name:other index:0 type:<root>.Test5 flags:[]
@18:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.Test5>, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.Test5> flags:[]
@18:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
@18:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.Test5>) returnType:kotlin.Int flags:[]
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.Test5> flags:[]
@17:0..18:11 PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL flags:[val]
@18:0..11 FUN FAKE_OVERRIDE name:<get-name> visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.Test5>) returnType:kotlin.String flags:[]
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.Test5> flags:[]
@17:0..18:11 PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL flags:[val]
@18:0..11 FUN FAKE_OVERRIDE name:<get-ordinal> visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.Test5>) returnType:kotlin.Int flags:[]
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.Test5> flags:[]
@18:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<<root>.Test5>) returnType:kotlin.String flags:[]
@17:0..18:11 VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.Test5> flags:[]
@17:0..18:11 FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<<root>.Test5> flags:[]
@17:0..18:11 SYNTHETIC_BODY kind=ENUM_VALUES
@17:0..18:11 FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:Test5 flags:
@17:0..18:11 VALUE_PARAMETER name:value index:0 type:kotlin.String flags:
@17:0..18:11 FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:<root>.Test5 flags:[]
@17:0..18:11 VALUE_PARAMETER name:value index:0 type:kotlin.String flags:[]
@17:0..18:11 SYNTHETIC_BODY kind=ENUM_VALUEOF
@21:0..22:11 CLASS ANNOTATION_CLASS name:Test6 modality:FINAL visibility:public flags: superTypes:[kotlin.Annotation]
@21:0..22:11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Test6 flags:
@22:0..11 CONSTRUCTOR visibility:public <> () returnType:Test6 flags:primary
@22:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
@21:0..22:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@22:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:
@22:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:
@21:0..22:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@22:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:
@21:0..22:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:
@21:0..22:11 CLASS ANNOTATION_CLASS name:Test6 modality:FINAL visibility:public flags:[] superTypes:[kotlin.Annotation]
@21:0..22:11 VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Test6 flags:[]
@22:0..11 CONSTRUCTOR visibility:public <> () returnType:<root>.Test6 flags:[primary]
@22:0..11 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:[]
@21:0..22:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@22:0..11 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags:[]
@22:0..11 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int flags:[]
@21:0..22:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]
@22:0..11 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String flags:[]
@21:0..22:11 VALUE_PARAMETER name:<this> type:kotlin.Any flags:[]