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:
Denis Zharkov
2018-12-14 13:11:14 +03:00
parent 9736975d52
commit 5cc242e878
5 changed files with 21 additions and 21 deletions
@@ -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) }