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:
committed by
Space Team
parent
e52529a1d1
commit
b5ba9ee671
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user