[FIR] COMPILER_REQUIRED_ANNOTATIONS phase: drop redundant transformation of super type refs

We should transform only top-level annotations. Nested/type annotations
we can ignore

^KT-56551
This commit is contained in:
Dmitrii Gridin
2023-05-17 16:15:52 +02:00
committed by Space Team
parent d8b542c68d
commit 8d151df252
2 changed files with 1 additions and 4 deletions
@@ -100,9 +100,7 @@ private class LLFirCompilerRequiredAnnotationsTargetResolver(
target is FirRegularClass -> {
transformer.annotationTransformer.resolveRegularClass(
target,
transformChildren = {
target.transformSuperTypeRefs(transformer.annotationTransformer, null)
},
transformChildren = {},
afterChildrenTransform = {
transformer.annotationTransformer.calculateDeprecations(target)
}
@@ -283,7 +283,6 @@ abstract class AbstractFirSpecificAnnotationResolveTransformer(
regularClass,
transformChildren = {
regularClass.transformDeclarations(this, data)
regularClass.transformSuperTypeRefs(this, data)
},
afterChildrenTransform = {
calculateDeprecations(regularClass)