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
@@ -10,6 +10,7 @@ FILE fqName:<root> fileName:/annotationClasses.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:Test1) returnType:Int flags:
correspondingProperty: PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val
$this: VALUE_PARAMETER name:<this> type:Test1 flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Int'
@@ -41,6 +42,7 @@ FILE fqName:<root> fileName:/annotationClasses.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:Test2) returnType:Int flags:
correspondingProperty: PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val
$this: VALUE_PARAMETER name:<this> type:Test2 flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Int'
@@ -70,6 +72,7 @@ FILE fqName:<root> fileName:/annotationClasses.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: Test1' type=Test1 origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:Test3) returnType:Test1 flags:
correspondingProperty: PROPERTY name:x type:Test1 visibility:public modality:FINAL flags:val
$this: VALUE_PARAMETER name:<this> type:Test3 flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Test1'
@@ -99,6 +102,7 @@ FILE fqName:<root> fileName:/annotationClasses.kt
EXPRESSION_BODY
GET_VAR 'value-parameter vararg xs: Int' type=kotlin.IntArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-xs> visibility:public modality:FINAL <> ($this:Test4) returnType:IntArray flags:
correspondingProperty: PROPERTY name:xs type:kotlin.IntArray visibility:public modality:FINAL flags:val
$this: VALUE_PARAMETER name:<this> type:Test4 flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-xs>(): IntArray'