IR: IrSimpleFunction.correspondingProperty: IrProperty?

Non-null for a property accessor, points to a corresponding property.
This commit is contained in:
Dmitry Petrov
2018-05-24 16:47:25 +03:00
parent 216dbf9637
commit ab455d6572
146 changed files with 604 additions and 20 deletions
@@ -72,22 +72,28 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags:
PROPERTY name:x type:kotlin.String visibility:public modality:ABSTRACT flags:val
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:ABSTRACT <> ($this:IOther) returnType:String flags:
correspondingProperty: PROPERTY name:x type:kotlin.String visibility:public modality:ABSTRACT flags:val
$this: VALUE_PARAMETER name:<this> type:IOther flags:
PROPERTY name:y type:kotlin.Int visibility:public modality:ABSTRACT flags:var
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:ABSTRACT <> ($this:IOther) returnType:Int flags:
correspondingProperty: PROPERTY name:y type:kotlin.Int visibility:public modality:ABSTRACT flags:var
$this: VALUE_PARAMETER name:<this> type:IOther flags:
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-y> visibility:public modality:ABSTRACT <> ($this:IOther, <set-?>:kotlin.Int) returnType:Unit flags:
correspondingProperty: PROPERTY name:y type:kotlin.Int visibility:public modality:ABSTRACT flags:var
$this: VALUE_PARAMETER name:<this> type:IOther flags:
VALUE_PARAMETER name:<set-?> index:0 type:kotlin.Int flags:
PROPERTY name:z1 type:kotlin.Int visibility:public modality:ABSTRACT flags:val
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-z1> visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte) returnType:Int flags:
correspondingProperty: PROPERTY name:z1 type:kotlin.Int visibility:public modality:ABSTRACT flags:val
$this: VALUE_PARAMETER name:<this> type:IOther flags:
$receiver: VALUE_PARAMETER name:<this> type:kotlin.Byte flags:
PROPERTY name:z2 type:kotlin.Int visibility:public modality:ABSTRACT flags:var
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-z2> visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte) returnType:Int flags:
correspondingProperty: PROPERTY name:z2 type:kotlin.Int visibility:public modality:ABSTRACT flags:var
$this: VALUE_PARAMETER name:<this> type:IOther flags:
$receiver: VALUE_PARAMETER name:<this> type:kotlin.Byte flags:
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-z2> visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte, <set-?>:kotlin.Int) returnType:Unit flags:
correspondingProperty: PROPERTY name:z2 type:kotlin.Int visibility:public modality:ABSTRACT flags:var
$this: VALUE_PARAMETER name:<this> type:IOther flags:
$receiver: VALUE_PARAMETER name:<this> type:kotlin.Byte flags:
VALUE_PARAMETER name:<set-?> index:0 type:kotlin.Int flags:
@@ -123,6 +129,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x0: String' type=kotlin.String origin=null
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:OPEN <> ($this:otherImpl.<no name provided>) returnType:String flags:
correspondingProperty: PROPERTY name:x type:kotlin.String visibility:public modality:OPEN flags:val
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:ABSTRACT <> ($this:IOther) returnType:String flags:
$this: VALUE_PARAMETER name:<this> type:otherImpl.<no name provided> flags:
@@ -135,6 +142,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
EXPRESSION_BODY
GET_VAR 'value-parameter y0: Int' type=kotlin.Int origin=null
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:OPEN <> ($this:otherImpl.<no name provided>) returnType:Int flags:
correspondingProperty: PROPERTY name:y type:kotlin.Int visibility:public modality:OPEN flags:var
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:ABSTRACT <> ($this:IOther) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:otherImpl.<no name provided> flags:
@@ -143,6 +151,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
GET_FIELD 'y: Int' type=kotlin.Int origin=null
receiver: GET_VAR 'this@<no name provided>: <no name provided>' type=otherImpl.<no name provided> origin=null
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-y> visibility:public modality:OPEN <> ($this:otherImpl.<no name provided>, <set-?>:kotlin.Int) returnType:Unit flags:
correspondingProperty: PROPERTY name:y type:kotlin.Int visibility:public modality:OPEN flags:var
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-y> visibility:public modality:ABSTRACT <> ($this:IOther, <set-?>:kotlin.Int) returnType:Unit flags:
$this: VALUE_PARAMETER name:<this> type:otherImpl.<no name provided> flags:
@@ -153,6 +162,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
PROPERTY name:z1 type:kotlin.Int visibility:public modality:OPEN flags:val
FUN name:<get-z1> visibility:public modality:OPEN <> ($this:otherImpl.<no name provided>, $receiver:kotlin.Byte) returnType:Int flags:
correspondingProperty: PROPERTY name:z1 type:kotlin.Int visibility:public modality:OPEN flags:val
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-z1> visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:otherImpl.<no name provided> flags:
@@ -162,6 +172,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
CONST Int type=kotlin.Int value=1
PROPERTY name:z2 type:kotlin.Int visibility:public modality:OPEN flags:var
FUN name:<get-z2> visibility:public modality:OPEN <> ($this:otherImpl.<no name provided>, $receiver:kotlin.Byte) returnType:Int flags:
correspondingProperty: PROPERTY name:z2 type:kotlin.Int visibility:public modality:OPEN flags:var
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-z2> visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:otherImpl.<no name provided> flags:
@@ -170,6 +181,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
RETURN type=kotlin.Nothing from='<get-z2>() on Byte: Int'
CONST Int type=kotlin.Int value=2
FUN name:<set-z2> visibility:public modality:OPEN <> ($this:otherImpl.<no name provided>, $receiver:kotlin.Byte, value:kotlin.Int) returnType:Unit flags:
correspondingProperty: PROPERTY name:z2 type:kotlin.Int visibility:public modality:OPEN flags:var
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-z2> visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte, <set-?>:kotlin.Int) returnType:Unit flags:
$this: VALUE_PARAMETER name:<this> type:otherImpl.<no name provided> flags:
@@ -295,6 +307,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
y0: CONST Int type=kotlin.Int value=42
PROPERTY DELEGATED_MEMBER name:z1 type:kotlin.Int visibility:public modality:OPEN flags:val
FUN DELEGATED_MEMBER name:<get-z1> visibility:public modality:OPEN <> ($this:Test2, $receiver:kotlin.Byte) returnType:Int flags:
correspondingProperty: PROPERTY DELEGATED_MEMBER name:z1 type:kotlin.Int visibility:public modality:OPEN flags:val
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-z1> visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:Test2 flags:
@@ -307,6 +320,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
$receiver: GET_VAR 'this@z1: Byte' type=kotlin.Byte origin=null
PROPERTY DELEGATED_MEMBER name:x type:kotlin.String visibility:public modality:OPEN flags:val
FUN DELEGATED_MEMBER name:<get-x> visibility:public modality:OPEN <> ($this:Test2) returnType:String flags:
correspondingProperty: PROPERTY DELEGATED_MEMBER name:x type:kotlin.String visibility:public modality:OPEN flags:val
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:ABSTRACT <> ($this:IOther) returnType:String flags:
$this: VALUE_PARAMETER name:<this> type:Test2 flags:
@@ -317,6 +331,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null
PROPERTY DELEGATED_MEMBER name:z2 type:kotlin.Int visibility:public modality:OPEN flags:var
FUN DELEGATED_MEMBER name:<get-z2> visibility:public modality:OPEN <> ($this:Test2, $receiver:kotlin.Byte) returnType:Int flags:
correspondingProperty: PROPERTY DELEGATED_MEMBER name:z2 type:kotlin.Int visibility:public modality:OPEN flags:var
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-z2> visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:Test2 flags:
@@ -328,6 +343,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null
$receiver: GET_VAR 'this@z2: Byte' type=kotlin.Byte origin=null
FUN DELEGATED_MEMBER name:<set-z2> visibility:public modality:OPEN <> ($this:Test2, $receiver:kotlin.Byte, <set-?>:kotlin.Int) returnType:Unit flags:
correspondingProperty: PROPERTY DELEGATED_MEMBER name:z2 type:kotlin.Int visibility:public modality:OPEN flags:var
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-z2> visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte, <set-?>:kotlin.Int) returnType:Unit flags:
$this: VALUE_PARAMETER name:<this> type:Test2 flags:
@@ -341,6 +357,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
<set-?>: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
PROPERTY DELEGATED_MEMBER name:y type:kotlin.Int visibility:public modality:OPEN flags:var
FUN DELEGATED_MEMBER name:<get-y> visibility:public modality:OPEN <> ($this:Test2) returnType:Int flags:
correspondingProperty: PROPERTY DELEGATED_MEMBER name:y type:kotlin.Int visibility:public modality:OPEN flags:var
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:ABSTRACT <> ($this:IOther) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:Test2 flags:
@@ -350,6 +367,7 @@ FILE fqName:<root> fileName:/delegatedImplementation.kt
$this: GET_FIELD '`Test2$IOther$delegate`: IOther' type=IOther origin=null
receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null
FUN DELEGATED_MEMBER name:<set-y> visibility:public modality:OPEN <> ($this:Test2, <set-?>:kotlin.Int) returnType:Unit flags:
correspondingProperty: PROPERTY DELEGATED_MEMBER name:y type:kotlin.Int visibility:public modality:OPEN flags:var
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<set-y> visibility:public modality:ABSTRACT <> ($this:IOther, <set-?>:kotlin.Int) returnType:Unit flags:
$this: VALUE_PARAMETER name:<this> type:Test2 flags: