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,96 @@
FILE fqName:<root> fileName:/localClassWithOverrides.kt
FUN name:outer visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:
FUN name:outer visibility:public modality:FINAL <> () returnType:kotlin.Unit flags:[]
BLOCK_BODY
CLASS CLASS name:ALocal modality:ABSTRACT visibility:local flags: superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:outer.ALocal flags:
CONSTRUCTOR visibility:public <> () returnType:outer.ALocal flags:primary
CLASS CLASS name:ALocal modality:ABSTRACT visibility:local flags:[] superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.outer.ALocal flags:[]
CONSTRUCTOR visibility:public <> () returnType:<root>.outer.ALocal flags:[primary]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='ALocal'
FUN name:afun visibility:public modality:ABSTRACT <> ($this:outer.ALocal) returnType:kotlin.Unit flags:
$this: VALUE_PARAMETER name:<this> type:outer.ALocal flags:
PROPERTY name:aval visibility:public modality:ABSTRACT flags:val
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-aval> visibility:public modality:ABSTRACT <> ($this:outer.ALocal) returnType:kotlin.Int flags:
correspondingProperty: PROPERTY name:aval visibility:public modality:ABSTRACT flags:val
$this: VALUE_PARAMETER name:<this> type:outer.ALocal flags:
PROPERTY name:avar visibility:public modality:ABSTRACT flags:var
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-avar> visibility:public modality:ABSTRACT <> ($this:outer.ALocal) returnType:kotlin.Int flags:
correspondingProperty: PROPERTY name:avar visibility:public modality:ABSTRACT flags:var
$this: VALUE_PARAMETER name:<this> type:outer.ALocal flags:
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-avar> visibility:public modality:ABSTRACT <> ($this:outer.ALocal, <set-?>:kotlin.Int) returnType:kotlin.Unit flags:
correspondingProperty: PROPERTY name:avar visibility:public modality:ABSTRACT flags:var
$this: VALUE_PARAMETER name:<this> type:outer.ALocal flags:
VALUE_PARAMETER name:<set-?> index:0 type:kotlin.Int flags:
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ALocal modality:ABSTRACT visibility:local flags:[] superTypes:[kotlin.Any]'
FUN name:afun visibility:public modality:ABSTRACT <> ($this:<root>.outer.ALocal) returnType:kotlin.Unit flags:[]
$this: VALUE_PARAMETER name:<this> type:<root>.outer.ALocal flags:[]
PROPERTY name:aval visibility:public modality:ABSTRACT flags:[val]
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-aval> visibility:public modality:ABSTRACT <> ($this:<root>.outer.ALocal) returnType:kotlin.Int flags:[]
correspondingProperty: PROPERTY name:aval visibility:public modality:ABSTRACT flags:[val]
$this: VALUE_PARAMETER name:<this> type:<root>.outer.ALocal flags:[]
PROPERTY name:avar visibility:public modality:ABSTRACT flags:[var]
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-avar> visibility:public modality:ABSTRACT <> ($this:<root>.outer.ALocal) returnType:kotlin.Int flags:[]
correspondingProperty: PROPERTY name:avar visibility:public modality:ABSTRACT flags:[var]
$this: VALUE_PARAMETER name:<this> type:<root>.outer.ALocal flags:[]
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-avar> visibility:public modality:ABSTRACT <> ($this:<root>.outer.ALocal, <set-?>:kotlin.Int) returnType:kotlin.Unit flags:[]
correspondingProperty: PROPERTY name:avar visibility:public modality:ABSTRACT flags:[var]
$this: VALUE_PARAMETER name:<this> type:<root>.outer.ALocal flags:[]
VALUE_PARAMETER name:<set-?> index:0 type:kotlin.Int flags:[]
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:
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:
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:Local modality:FINAL visibility:local flags: superTypes:[outer.ALocal]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:outer.Local flags:
CONSTRUCTOR visibility:public <> () returnType:outer.Local flags:primary
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:Local modality:FINAL visibility:local flags:[] superTypes:[<root>.outer.ALocal]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.outer.Local flags:[]
CONSTRUCTOR visibility:public <> () returnType:<root>.outer.Local flags:[primary]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor ALocal()'
INSTANCE_INITIALIZER_CALL classDescriptor='Local'
FUN name:afun visibility:public modality:OPEN <> ($this:outer.Local) returnType:kotlin.Unit flags:
DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR visibility:public <> () returnType:<root>.outer.ALocal flags:[primary]'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Local modality:FINAL visibility:local flags:[] superTypes:[<root>.outer.ALocal]'
FUN name:afun visibility:public modality:OPEN <> ($this:<root>.outer.Local) returnType:kotlin.Unit flags:[]
overridden:
FUN name:afun visibility:public modality:ABSTRACT <> ($this:outer.ALocal) returnType:kotlin.Unit flags:
$this: VALUE_PARAMETER name:<this> type:outer.Local flags:
FUN name:afun visibility:public modality:ABSTRACT <> ($this:<root>.outer.ALocal) returnType:kotlin.Unit flags:[]
$this: VALUE_PARAMETER name:<this> type:<root>.outer.Local flags:[]
BLOCK_BODY
PROPERTY name:aval visibility:public modality:OPEN flags:val
FIELD PROPERTY_BACKING_FIELD name:aval type:kotlin.Int visibility:public flags:final
PROPERTY name:aval visibility:public modality:OPEN flags:[val]
FIELD PROPERTY_BACKING_FIELD name:aval type:kotlin.Int visibility:public flags:[final]
EXPRESSION_BODY
CONST Int type=kotlin.Int value=1
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-aval> visibility:public modality:OPEN <> ($this:outer.Local) returnType:kotlin.Int flags:
correspondingProperty: PROPERTY name:aval visibility:public modality:OPEN flags:val
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-aval> visibility:public modality:OPEN <> ($this:<root>.outer.Local) returnType:kotlin.Int flags:[]
correspondingProperty: PROPERTY name:aval visibility:public modality:OPEN flags:[val]
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-aval> visibility:public modality:ABSTRACT <> ($this:outer.ALocal) returnType:kotlin.Int flags:
$this: VALUE_PARAMETER name:<this> type:outer.Local flags:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-aval> visibility:public modality:ABSTRACT <> ($this:<root>.outer.ALocal) returnType:kotlin.Int flags:[]
$this: VALUE_PARAMETER name:<this> type:<root>.outer.Local flags:[]
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-aval>(): Int'
GET_FIELD 'aval: Int' type=kotlin.Int origin=null
receiver: GET_VAR 'this@Local: Local' type=outer.Local origin=null
PROPERTY name:avar visibility:public modality:OPEN flags:var
FIELD PROPERTY_BACKING_FIELD name:avar type:kotlin.Int visibility:public flags:
RETURN type=kotlin.Nothing from='FUN DEFAULT_PROPERTY_ACCESSOR name:<get-aval> visibility:public modality:OPEN <> ($this:<root>.outer.Local) returnType:kotlin.Int flags:[]'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:aval type:kotlin.Int visibility:public flags:[final]' type=kotlin.Int origin=null
receiver: GET_VAR 'VALUE_PARAMETER name:<this> type:<root>.outer.Local flags:[]' type=<root>.outer.Local origin=null
PROPERTY name:avar visibility:public modality:OPEN flags:[var]
FIELD PROPERTY_BACKING_FIELD name:avar type:kotlin.Int visibility:public flags:[]
EXPRESSION_BODY
CONST Int type=kotlin.Int value=2
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-avar> visibility:public modality:OPEN <> ($this:outer.Local) returnType:kotlin.Int flags:
correspondingProperty: PROPERTY name:avar visibility:public modality:OPEN flags:var
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-avar> visibility:public modality:OPEN <> ($this:<root>.outer.Local) returnType:kotlin.Int flags:[]
correspondingProperty: PROPERTY name:avar visibility:public modality:OPEN flags:[var]
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-avar> visibility:public modality:ABSTRACT <> ($this:outer.ALocal) returnType:kotlin.Int flags:
$this: VALUE_PARAMETER name:<this> type:outer.Local flags:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-avar> visibility:public modality:ABSTRACT <> ($this:<root>.outer.ALocal) returnType:kotlin.Int flags:[]
$this: VALUE_PARAMETER name:<this> type:<root>.outer.Local flags:[]
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-avar>(): Int'
GET_FIELD 'avar: Int' type=kotlin.Int origin=null
receiver: GET_VAR 'this@Local: Local' type=outer.Local origin=null
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-avar> visibility:public modality:OPEN <> ($this:outer.Local, <set-?>:kotlin.Int) returnType:kotlin.Unit flags:
correspondingProperty: PROPERTY name:avar visibility:public modality:OPEN flags:var
RETURN type=kotlin.Nothing from='FUN DEFAULT_PROPERTY_ACCESSOR name:<get-avar> visibility:public modality:OPEN <> ($this:<root>.outer.Local) returnType:kotlin.Int flags:[]'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:avar type:kotlin.Int visibility:public flags:[]' type=kotlin.Int origin=null
receiver: GET_VAR 'VALUE_PARAMETER name:<this> type:<root>.outer.Local flags:[]' type=<root>.outer.Local origin=null
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-avar> visibility:public modality:OPEN <> ($this:<root>.outer.Local, <set-?>:kotlin.Int) returnType:kotlin.Unit flags:[]
correspondingProperty: PROPERTY name:avar visibility:public modality:OPEN flags:[var]
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-avar> visibility:public modality:ABSTRACT <> ($this:outer.ALocal, <set-?>:kotlin.Int) returnType:kotlin.Unit flags:
$this: VALUE_PARAMETER name:<this> type:outer.Local flags:
VALUE_PARAMETER name:<set-?> index:0 type:kotlin.Int flags:
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-avar> visibility:public modality:ABSTRACT <> ($this:<root>.outer.ALocal, <set-?>:kotlin.Int) returnType:kotlin.Unit flags:[]
$this: VALUE_PARAMETER name:<this> type:<root>.outer.Local flags:[]
VALUE_PARAMETER name:<set-?> index:0 type:kotlin.Int flags:[]
BLOCK_BODY
SET_FIELD 'avar: Int' type=kotlin.Unit origin=null
receiver: GET_VAR 'this@Local: Local' type=outer.Local origin=null
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean flags:
SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:avar type:kotlin.Int visibility:public flags:[]' type=kotlin.Unit origin=null
receiver: GET_VAR 'VALUE_PARAMETER name:<this> type:<root>.outer.Local flags:[]' type=<root>.outer.Local origin=null
value: GET_VAR 'VALUE_PARAMETER name:<set-?> index:0 type:kotlin.Int flags:[]' type=kotlin.Int origin=null
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:
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:
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:
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:[]