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
@@ -19,6 +19,7 @@ FILE fqName:<root> fileName:/dataClassMembers.kt
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:Test<T>) returnType:T flags:
correspondingProperty: PROPERTY name:x type:T visibility:public modality:FINAL flags:val
$this: VALUE_PARAMETER name:<this> type:Test<T> flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): T'
@@ -29,6 +30,7 @@ FILE fqName:<root> fileName:/dataClassMembers.kt
EXPRESSION_BODY
GET_VAR 'value-parameter y: String = ...' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-y> visibility:public modality:FINAL <> ($this:Test<T>) returnType:String flags:
correspondingProperty: PROPERTY name:y type:kotlin.String visibility:public modality:FINAL flags:val
$this: VALUE_PARAMETER name:<this> type:Test<T> flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-y>(): String'