[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
@@ -160,7 +160,7 @@ private fun markLeaves(elements: List<Element>) {
private fun addAbstractElement(elements: List<Element>) {
for (el in elements) {
if (el.kind!!.typeKind == TypeKind.Class && el.elementParents.none { it.element.kind!!.typeKind == TypeKind.Class }) {
if (el.needPureAbstractElement) {
el.otherParents += elementBaseType
}
}