[FIR] provide correct origin and source to default backing field

Now it is aligned with default accessors
Covered by
analysis/analysis-api/testData/symbols/symbolByReference/accessorField.kt
test

^KT-57648
^KT-55723
This commit is contained in:
Dmitrii Gridin
2023-05-10 17:46:56 +02:00
committed by Space Team
parent ae4b0c6fe1
commit add47aa041
7 changed files with 39 additions and 8 deletions
@@ -415,12 +415,15 @@ class FirMemberDeserializer(private val c: FirDeserializationContext) {
)
backingField = FirDefaultPropertyBackingField(
c.moduleData,
FirDeclarationOrigin.Library,
source = null,
backingFieldAnnotations,
returnTypeRef,
isVar,
symbol,
status
status,
)
if (hasGetter) {
this.getter = loadPropertyGetter(
proto,