[FIR] add missing transformation of annotation type arguments

^KT-62679
This commit is contained in:
Dmitrii Gridin
2023-10-18 15:48:53 +02:00
committed by Space Team
parent 27c5a0b60d
commit 32ed81440c
6 changed files with 214 additions and 0 deletions
@@ -355,6 +355,7 @@ open class FirTypeResolveTransformer(
else -> shouldNotBeCalled()
}
FirAnnotationResolvePhase.CompilerRequiredAnnotations -> {
annotationCall.transformTypeArguments(this, data)
annotationCall.replaceAnnotationResolvePhase(FirAnnotationResolvePhase.Types)
val alternativeResolvedTypeRef =
originalTypeRef.delegatedTypeRef?.transformSingle(this, data) ?: return annotationCall
@@ -378,6 +379,7 @@ open class FirTypeResolveTransformer(
}
else -> {
val transformedTypeRef = originalTypeRef.transformSingle(this, data)
annotationCall.transformTypeArguments(this, data)
annotationCall.replaceAnnotationResolvePhase(FirAnnotationResolvePhase.Types)
annotationCall.replaceAnnotationTypeRef(transformedTypeRef)
}