[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:
+4
@@ -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?
|
||||
|
||||
+4
@@ -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
|
||||
|
||||
+6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user