[FIR generator] Deduplicate the logic of needPureAbstractElement

This commit is contained in:
Sergej Jaskiewicz
2023-09-18 19:29:03 +02:00
committed by Space Team
parent 45792c2e60
commit 9a4c28498c
4 changed files with 7 additions and 7 deletions
@@ -8,4 +8,8 @@ package org.jetbrains.kotlin.generators.tree
interface ImplementationKindOwner : Importable {
var kind: ImplementationKind?
val allParents: List<ImplementationKindOwner>
}
}
val ImplementationKindOwner.needPureAbstractElement: Boolean
get() = !(kind?.isInterface ?: false) &&
allParents.none { it.kind == ImplementationKind.AbstractClass || it.kind == ImplementationKind.SealedClass }