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:/propertyAccessorsWithAnnotations.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-x> visibility:public modality:FINAL <> ($this:TestAnn) returnType:String flags:
correspondingProperty: PROPERTY name:x type:kotlin.String visibility:public modality:FINAL flags:val
$this: VALUE_PARAMETER name:<this> type:TestAnn flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): String'
@@ -33,6 +34,7 @@ FILE fqName:<root> fileName:/propertyAccessorsWithAnnotations.kt
annotations:
CALL 'constructor TestAnn(String)' type=TestAnn origin=null
x: CONST String type=kotlin.String value=test1.get
correspondingProperty: PROPERTY name:test1 type:kotlin.String visibility:public modality:FINAL flags:val
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test1>(): String'
CONST String type=kotlin.String value=
@@ -41,6 +43,7 @@ FILE fqName:<root> fileName:/propertyAccessorsWithAnnotations.kt
annotations:
CALL 'constructor TestAnn(String)' type=TestAnn origin=null
x: CONST String type=kotlin.String value=test2.get
correspondingProperty: PROPERTY name:test2 type:kotlin.String visibility:public modality:FINAL flags:var
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test2>(): String'
CONST String type=kotlin.String value=
@@ -48,6 +51,7 @@ FILE fqName:<root> fileName:/propertyAccessorsWithAnnotations.kt
annotations:
CALL 'constructor TestAnn(String)' type=TestAnn origin=null
x: CONST String type=kotlin.String value=test2.set
correspondingProperty: PROPERTY name:test2 type:kotlin.String visibility:public modality:FINAL flags:var
VALUE_PARAMETER name:value index:0 type:kotlin.String flags:
BLOCK_BODY
PROPERTY name:test3 type:kotlin.String visibility:public modality:FINAL flags:val
@@ -58,6 +62,7 @@ FILE fqName:<root> fileName:/propertyAccessorsWithAnnotations.kt
annotations:
CALL 'constructor TestAnn(String)' type=TestAnn origin=null
x: CONST String type=kotlin.String value=test3.get
correspondingProperty: PROPERTY name:test3 type:kotlin.String visibility:public modality:FINAL flags:val
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test3>(): String'
GET_FIELD 'test3: String' type=kotlin.String origin=null
@@ -69,6 +74,7 @@ FILE fqName:<root> fileName:/propertyAccessorsWithAnnotations.kt
annotations:
CALL 'constructor TestAnn(String)' type=TestAnn origin=null
x: CONST String type=kotlin.String value=test4.get
correspondingProperty: PROPERTY name:test4 type:kotlin.String visibility:public modality:FINAL flags:var
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test4>(): String'
GET_FIELD 'test4: String' type=kotlin.String origin=null
@@ -76,7 +82,9 @@ FILE fqName:<root> fileName:/propertyAccessorsWithAnnotations.kt
annotations:
CALL 'constructor TestAnn(String)' type=TestAnn origin=null
x: CONST String type=kotlin.String value=test4.set
correspondingProperty: PROPERTY name:test4 type:kotlin.String visibility:public modality:FINAL flags:var
VALUE_PARAMETER name:<set-?> index:0 type:kotlin.String flags:
BLOCK_BODY
SET_FIELD 'test4: String' type=kotlin.Unit origin=null
value: GET_VAR 'value-parameter <set-?>: String' type=kotlin.String origin=null