Raw FIR: set source for setter parameter <set-?> access in delegated properties

Related to KT-59864
This commit is contained in:
Mikhail Glukhikh
2023-09-28 14:01:26 +02:00
committed by Space Team
parent d321fa3fd9
commit a5a8f6736b
2 changed files with 2 additions and 1 deletions
@@ -528,6 +528,7 @@ fun <T> FirPropertyBuilder.generateAccessorsByDelegate(
arguments += thisRef()
arguments += propertyRef()
arguments += buildPropertyAccessExpression {
source = fakeSource
calleeReference = buildResolvedNamedReference {
source = fakeSource
name = SpecialNames.IMPLICIT_SET_PARAMETER
@@ -59,7 +59,7 @@
@10:34..12:5 GET_VAR '<this>: <root>.MyClass declared in <root>.MyClass.<set-observableProp>' type=<root>.MyClass origin=null
@10:34..12:5 GET_VAR '<this>: <root>.MyClass declared in <root>.MyClass.<set-observableProp>' type=<root>.MyClass origin=null
@10:34..12:5 PROPERTY_REFERENCE 'public final observableProp: kotlin.String [delegated,var]' field=null getter='public final fun <get-observableProp> (): kotlin.String declared in <root>.MyClass' setter='public final fun <set-observableProp> (<set-?>: kotlin.String): kotlin.Unit declared in <root>.MyClass' type=kotlin.reflect.KMutableProperty1<<root>.MyClass, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE
@10:34..-1:-1 GET_VAR '<set-?>: kotlin.String declared in <root>.MyClass.<set-observableProp>' type=kotlin.String origin=null
@10:34..12:5 GET_VAR '<set-?>: kotlin.String declared in <root>.MyClass.<set-observableProp>' type=kotlin.String origin=null
@-1:-1..-1 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
@-1:-1..-1 VALUE_PARAMETER name:<this> type:kotlin.Any
@-1:-1..-1 VALUE_PARAMETER name:other index:0 type:kotlin.Any?