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,57 +1,57 @@
FILE fqName:<root> fileName:/genericClassInDifferentModule_m1.kt
CLASS CLASS name:Base modality:ABSTRACT visibility:public flags: superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Base<T> flags:
CLASS CLASS name:Base modality:ABSTRACT visibility:public flags:[] superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Base<<root>.Base.T> flags:[]
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?]
CONSTRUCTOR visibility:public <> (x:T) returnType:Base<T> flags:primary
VALUE_PARAMETER name:x index:0 type:T flags:
CONSTRUCTOR visibility:public <> (x:<root>.Base.T) returnType:<root>.Base<<root>.Base.T> flags:[primary]
VALUE_PARAMETER name:x index:0 type:<root>.Base.T flags:[]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Base'
PROPERTY name:x visibility:public modality:FINAL flags:val
FIELD PROPERTY_BACKING_FIELD name:x type:T visibility:public flags:final
DELEGATING_CONSTRUCTOR_CALL 'CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags:[primary]'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:ABSTRACT visibility:public flags:[] superTypes:[kotlin.Any]'
PROPERTY name:x visibility:public modality:FINAL flags:[val]
FIELD PROPERTY_BACKING_FIELD name:x type:<root>.Base.T visibility:public flags:[final]
EXPRESSION_BODY
GET_VAR 'value-parameter x: T' type=T origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Base<T>) returnType:T flags:
correspondingProperty: PROPERTY name:x visibility:public modality:FINAL flags:val
$this: VALUE_PARAMETER name:<this> type:Base<T> flags:
GET_VAR 'VALUE_PARAMETER name:x index:0 type:<root>.Base.T flags:[]' type=<root>.Base.T origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Base<<root>.Base.T>) returnType:<root>.Base.T flags:[]
correspondingProperty: PROPERTY name:x visibility:public modality:FINAL flags:[val]
$this: VALUE_PARAMETER name:<this> type:<root>.Base<<root>.Base.T> flags:[]
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): T'
GET_FIELD 'x: T' type=T origin=null
receiver: GET_VAR 'this@Base: Base<T>' type=Base<T> origin=null
FUN name:foo visibility:public modality:ABSTRACT <Y> ($this:Base<T>, y:Y) returnType:T flags:
RETURN type=kotlin.Nothing from='FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:<root>.Base<<root>.Base.T>) returnType:<root>.Base.T flags:[]'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:<root>.Base.T visibility:public flags:[final]' type=<root>.Base.T origin=null
receiver: GET_VAR 'VALUE_PARAMETER name:<this> type:<root>.Base<<root>.Base.T> flags:[]' type=<root>.Base<<root>.Base.T> origin=null
FUN name:foo visibility:public modality:ABSTRACT <Y> ($this:<root>.Base<<root>.Base.T>, y:<root>.Base.foo.Y) returnType:<root>.Base.T flags:[]
TYPE_PARAMETER name:Y index:0 variance: superTypes:[kotlin.Any?]
$this: VALUE_PARAMETER name:<this> type:Base<T> flags:
VALUE_PARAMETER name:y index:0 type:Y flags:
PROPERTY name:bar visibility:public modality:ABSTRACT flags:var
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-bar> visibility:public modality:ABSTRACT <> ($this:Base<T>) returnType:T flags:
correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT flags:var
$this: VALUE_PARAMETER name:<this> type:Base<T> flags:
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-bar> visibility:public modality:ABSTRACT <> ($this:Base<T>, <set-?>:T) returnType:kotlin.Unit flags:
correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT flags:var
$this: VALUE_PARAMETER name:<this> type:Base<T> flags:
VALUE_PARAMETER name:<set-?> index:0 type:T flags:
PROPERTY name:exn visibility:public modality:ABSTRACT flags:var
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-exn> visibility:public modality:ABSTRACT <Z> ($this:Base<T>, $receiver:Z) returnType:T flags:
correspondingProperty: PROPERTY name:exn visibility:public modality:ABSTRACT flags:var
$this: VALUE_PARAMETER name:<this> type:<root>.Base<<root>.Base.T> flags:[]
VALUE_PARAMETER name:y index:0 type:<root>.Base.foo.Y flags:[]
PROPERTY name:bar visibility:public modality:ABSTRACT flags:[var]
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-bar> visibility:public modality:ABSTRACT <> ($this:<root>.Base<<root>.Base.T>) returnType:<root>.Base.T flags:[]
correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT flags:[var]
$this: VALUE_PARAMETER name:<this> type:<root>.Base<<root>.Base.T> flags:[]
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-bar> visibility:public modality:ABSTRACT <> ($this:<root>.Base<<root>.Base.T>, <set-?>:<root>.Base.T) returnType:kotlin.Unit flags:[]
correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT flags:[var]
$this: VALUE_PARAMETER name:<this> type:<root>.Base<<root>.Base.T> flags:[]
VALUE_PARAMETER name:<set-?> index:0 type:<root>.Base.T flags:[]
PROPERTY name:exn visibility:public modality:ABSTRACT flags:[var]
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-exn> visibility:public modality:ABSTRACT <Z> ($this:<root>.Base<<root>.Base.T>, $receiver:<root>.Base.<get-exn>.Z) returnType:<root>.Base.T flags:[]
correspondingProperty: PROPERTY name:exn visibility:public modality:ABSTRACT flags:[var]
TYPE_PARAMETER name:Z index:0 variance: superTypes:[kotlin.Any?]
$this: VALUE_PARAMETER name:<this> type:Base<T> flags:
$receiver: VALUE_PARAMETER name:<this> type:Z flags:
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-exn> visibility:public modality:ABSTRACT <Z> ($this:Base<T>, $receiver:Z, <set-?>:T) returnType:kotlin.Unit flags:
correspondingProperty: PROPERTY name:exn visibility:public modality:ABSTRACT flags:var
$this: VALUE_PARAMETER name:<this> type:<root>.Base<<root>.Base.T> flags:[]
$receiver: VALUE_PARAMETER name:<this> type:<root>.Base.<get-exn>.Z flags:[]
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-exn> visibility:public modality:ABSTRACT <Z> ($this:<root>.Base<<root>.Base.T>, $receiver:<root>.Base.<set-exn>.Z, <set-?>:<root>.Base.T) returnType:kotlin.Unit flags:[]
correspondingProperty: PROPERTY name:exn visibility:public modality:ABSTRACT flags:[var]
TYPE_PARAMETER name:Z index:0 variance: superTypes:[kotlin.Any?]
$this: VALUE_PARAMETER name:<this> type:Base<T> flags:
$receiver: VALUE_PARAMETER name:<this> type:Z flags:
VALUE_PARAMETER name:<set-?> index:0 type:T 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:<root>.Base<<root>.Base.T> flags:[]
$receiver: VALUE_PARAMETER name:<this> type:<root>.Base.<set-exn>.Z flags:[]
VALUE_PARAMETER name:<set-?> index:0 type:<root>.Base.T 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:
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:[]