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
@@ -4,6 +4,7 @@ FILE fqName:<root> fileName:/unresolvedReference.kt
EXPRESSION_BODY
ERROR_CALL '' type=[ERROR : ]
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-test1> visibility:public modality:FINAL <> () returnType:[ERROR : Type for unresolved] flags:
correspondingProperty: PROPERTY name:test1 type:[ERROR : Type for unresolved] visibility:public modality:FINAL flags:val
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test1>(): [ERROR : Type for unresolved]'
GET_FIELD 'test1: [ERROR : Type for unresolved]' type=[ERROR : Type for unresolved] origin=null
@@ -12,6 +13,7 @@ FILE fqName:<root> fileName:/unresolvedReference.kt
EXPRESSION_BODY
ERROR_CALL '' type=[ERROR : ]
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-test2> visibility:public modality:FINAL <> () returnType:[ERROR : Unresolved] flags:
correspondingProperty: PROPERTY name:test2 type:[ERROR : Unresolved] visibility:public modality:FINAL flags:val
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test2>(): [ERROR : Unresolved]'
GET_FIELD 'test2: [ERROR : Unresolved]' type=[ERROR : Unresolved] origin=null
@@ -22,6 +24,7 @@ FILE fqName:<root> fileName:/unresolvedReference.kt
receiver: CONST Int type=kotlin.Int value=42
CONST Int type=kotlin.Int value=56
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-test3> visibility:public modality:FINAL <> () returnType:[ERROR : Type for 42.unresolved(56)] flags:
correspondingProperty: PROPERTY name:test3 type:[ERROR : Type for 42.unresolved(56)] visibility:public modality:FINAL flags:val
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test3>(): [ERROR : Type for 42.unresolved(56)]'
GET_FIELD 'test3: [ERROR : Type for 42.unresolved(56)]' type=[ERROR : Type for 42.unresolved(56)] origin=null
@@ -30,6 +33,7 @@ FILE fqName:<root> fileName:/unresolvedReference.kt
EXPRESSION_BODY
ERROR_EXPR '' type=[ERROR : ]
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-test4> visibility:public modality:FINAL <> () returnType:[ERROR : Type for 42 *] flags:
correspondingProperty: PROPERTY name:test4 type:[ERROR : Type for 42 *] visibility:public modality:FINAL flags:val
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test4>(): [ERROR : Type for 42 *]'
GET_FIELD 'test4: [ERROR : Type for 42 *]' type=[ERROR : Type for 42 *] origin=null