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