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
@@ -14,6 +14,7 @@ FILE fqName:<root> fileName:/argumentReorderingInDelegatingConstructorCall.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Base) returnType:Int flags:
correspondingProperty: PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val
$this: VALUE_PARAMETER name:<this> type:Base flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Int'
@@ -24,6 +25,7 @@ FILE fqName:<root> fileName:/argumentReorderingInDelegatingConstructorCall.kt
EXPRESSION_BODY
GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:FINAL <> ($this:Base) returnType:Int flags:
correspondingProperty: PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val
$this: VALUE_PARAMETER name:<this> type:Base flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-y>(): Int'
@@ -61,11 +63,13 @@ FILE fqName:<root> fileName:/argumentReorderingInDelegatingConstructorCall.kt
INSTANCE_INITIALIZER_CALL classDescriptor='Test1'
PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val
FUN FAKE_OVERRIDE name:<get-x> visibility:public modality:FINAL <> ($this:Base) returnType:Int flags:
correspondingProperty: PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Base) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:Base flags:
PROPERTY FAKE_OVERRIDE name:y type:kotlin.Int visibility:public modality:FINAL flags:val
FUN FAKE_OVERRIDE name:<get-y> visibility:public modality:FINAL <> ($this:Base) returnType:Int flags:
correspondingProperty: PROPERTY FAKE_OVERRIDE name:y type:kotlin.Int visibility:public modality:FINAL flags:val
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:FINAL <> ($this:Base) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:Base flags:
@@ -114,11 +118,13 @@ FILE fqName:<root> fileName:/argumentReorderingInDelegatingConstructorCall.kt
yy: GET_VAR 'tmp0_yy: Int' type=kotlin.Int origin=null
PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val
FUN FAKE_OVERRIDE name:<get-x> visibility:public modality:FINAL <> ($this:Base) returnType:Int flags:
correspondingProperty: PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Base) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:Base flags:
PROPERTY FAKE_OVERRIDE name:y type:kotlin.Int visibility:public modality:FINAL flags:val
FUN FAKE_OVERRIDE name:<get-y> visibility:public modality:FINAL <> ($this:Base) returnType:Int flags:
correspondingProperty: PROPERTY FAKE_OVERRIDE name:y type:kotlin.Int visibility:public modality:FINAL flags:val
overridden:
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:FINAL <> ($this:Base) returnType:Int flags:
$this: VALUE_PARAMETER name:<this> type:Base flags: