Refactor FunctionHandle::isInterfaceDeclaration
- Give it more clear name mayBeUsedAsSuperImplementation because defining if it can be used as super-implementation this is what it used for - The meaning is negated, so it's needed to negate its usages and impls - Also, reuse it in findSuperImplementationForStubDelegation
This commit is contained in:
+2
-2
@@ -171,8 +171,8 @@ data class IrBasedFunctionHandle(val function: IrSimpleFunction) : FunctionHandl
|
||||
override val isAbstract: Boolean =
|
||||
function.modality == Modality.ABSTRACT
|
||||
|
||||
override val isInterfaceDeclaration =
|
||||
function.parentAsClass.isInterface
|
||||
override val mayBeUsedAsSuperImplementation =
|
||||
!function.parentAsClass.isInterface
|
||||
|
||||
override fun getOverridden() =
|
||||
function.overriddenSymbols.map { IrBasedFunctionHandle(it.owner) }
|
||||
|
||||
Reference in New Issue
Block a user