[FIR generator] Deduplicate the logic of needPureAbstractElement
This commit is contained in:
committed by
Space Team
parent
45792c2e60
commit
9a4c28498c
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user