IR: refactor resolveFakeOverride call sites

Split it to 4 functions for clarity: resolveFakeOverride,
resolveFakeOverrideOrFail, resolveFakeOverrideMaybeAbstract,
resolveFakeOverrideMaybeAbstractOrFail. Remove/inline duplicated
utilities and remove unused parameters.
This commit is contained in:
Alexander Udalov
2023-08-23 15:37:01 +02:00
committed by Space Team
parent e52529a1d1
commit b5ba9ee671
19 changed files with 72 additions and 80 deletions
@@ -35,10 +35,6 @@ internal interface Complex : State {
}
}
fun getRealFunction(owner: IrSimpleFunction): IrSimpleFunction {
return owner.resolveFakeOverride() as IrSimpleFunction
}
override fun getIrFunctionByIrCall(expression: IrCall): IrFunction? {
val receiver = expression.superQualifierSymbol?.owner ?: irClass
val irFunction = getIrFunctionFromGivenClass(receiver, expression.symbol.owner) ?: return null