[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:
committed by
Space Team
parent
d8b542c68d
commit
8d151df252
+1
-3
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user