[FIR] Add the missing transformPropertyAccessor override

Otherwise, `transformPropertyAccessor` from
`FirDeclarationsResolveTransformerForArgumentAnnotations` is
never called

See:
- compiler/testData/asJava/ultraLightFacades/properties.kt
- analysis/analysis-api/testData/symbols/symbolByPsi/
  contextReceivers/contextReceiversOnProperty.kt
This commit is contained in:
Nikolay Lunyak
2022-09-30 11:43:49 +03:00
parent ef54a6d7cb
commit 6653f654ec
6 changed files with 21 additions and 2 deletions
@@ -525,6 +525,10 @@ abstract class AbstractFirStatusResolveTransformer(
return transformDeclaration(field, data) as FirField
}
override fun transformPropertyAccessor(propertyAccessor: FirPropertyAccessor, data: FirResolvedDeclarationStatus?): FirStatement {
return propertyAccessor.also { transformProperty(it.propertySymbol.fir, data) }
}
override fun transformEnumEntry(
enumEntry: FirEnumEntry,
data: FirResolvedDeclarationStatus?
@@ -282,6 +282,10 @@ open class FirBodyResolveTransformer(
return declarationsTransformer.transformProperty(property, data)
}
override fun transformPropertyAccessor(propertyAccessor: FirPropertyAccessor, data: ResolutionMode): FirStatement {
return declarationsTransformer.transformPropertyAccessor(propertyAccessor, data)
}
override fun transformBackingField(
backingField: FirBackingField,
data: ResolutionMode
@@ -298,6 +298,12 @@ open class FirDeclarationsResolveTransformer(transformer: FirBodyResolveTransfor
}
}
override fun transformPropertyAccessor(propertyAccessor: FirPropertyAccessor, data: ResolutionMode): FirStatement {
return propertyAccessor.also {
transformProperty(it.propertySymbol.fir, data)
}
}
override fun transformWrappedDelegateExpression(
wrappedDelegateExpression: FirWrappedDelegateExpression,
data: ResolutionMode,