[LL FIR] drop extra withContainingClass from annotation transformers
This call is redundant for annotation transformers because they are override withRegularClass and add this call there, so, as result, we have a class duplication in containingClassDeclarations ^KT-62587
This commit is contained in:
committed by
Space Team
parent
21f81a8057
commit
5298d79dec
+8
@@ -65,6 +65,14 @@ private class LLFirAnnotationArgumentsMappingTargetResolver(
|
||||
transformAnnotations(target)
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated("Should never be called directly, only for override purposes, please use withRegularClass", level = DeprecationLevel.ERROR)
|
||||
override fun withRegularClassImpl(firClass: FirRegularClass, action: () -> Unit) {
|
||||
transformer.declarationsTransformer.withRegularClass(firClass) {
|
||||
action()
|
||||
firClass
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal object AnnotationArgumentMappingStateKeepers {
|
||||
|
||||
+4
-2
@@ -87,8 +87,10 @@ private class LLFirAnnotationArgumentsTargetResolver(
|
||||
collector.addDeclarationContext(firClass, context)
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
super.withRegularClassImpl(firClass, actionWithCollector)
|
||||
transformer.declarationsTransformer.withRegularClass(firClass) {
|
||||
actionWithCollector()
|
||||
firClass
|
||||
}
|
||||
}
|
||||
|
||||
override fun doLazyResolveUnderLock(target: FirElementWithResolveState) {
|
||||
|
||||
Reference in New Issue
Block a user