IR: Restore method used by Anvil annotation processor

But make it hidden, so, the new method will be used instead
 #KT-62281
This commit is contained in:
Ilmir Usmanov
2023-12-06 02:19:57 +01:00
committed by Space Team
parent 2391f00b75
commit 32e43998a0
@@ -1078,3 +1078,8 @@ class LocalDeclarationsLowering(
// Local inner classes capture anything through outer
internal fun IrClass.isLocalNotInner(): Boolean = visibility == DescriptorVisibilities.LOCAL && !isInner
// FIXME: This is used by Anvil compiler plugin, remove after Anvil update
@Deprecated("Moved to IR Utils", level = DeprecationLevel.HIDDEN)
val IrDeclaration.parents: Sequence<IrDeclarationParent>
get() = generateSequence(parent) { (it as? IrDeclaration)?.parent }