[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 -> { target is FirRegularClass -> {
transformer.annotationTransformer.resolveRegularClass( transformer.annotationTransformer.resolveRegularClass(
target, target,
transformChildren = { transformChildren = {},
target.transformSuperTypeRefs(transformer.annotationTransformer, null)
},
afterChildrenTransform = { afterChildrenTransform = {
transformer.annotationTransformer.calculateDeprecations(target) transformer.annotationTransformer.calculateDeprecations(target)
} }
@@ -283,7 +283,6 @@ abstract class AbstractFirSpecificAnnotationResolveTransformer(
regularClass, regularClass,
transformChildren = { transformChildren = {
regularClass.transformDeclarations(this, data) regularClass.transformDeclarations(this, data)
regularClass.transformSuperTypeRefs(this, data)
}, },
afterChildrenTransform = { afterChildrenTransform = {
calculateDeprecations(regularClass) calculateDeprecations(regularClass)