[FIR2IR] Minor refactoring of populateOverriddenSymbols
This commit is contained in:
+5
-4
@@ -933,11 +933,12 @@ class Fir2IrDeclarationStorage(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun IrSimpleFunction.populateOverriddenSymbols(thisReceiverOwner: IrClass) {
|
private fun IrSimpleFunction.populateOverriddenSymbols(thisReceiverOwner: IrClass) {
|
||||||
thisReceiverOwner.findMatchingOverriddenSymbolsFromSupertypes(components.irBuiltIns, this).forEach {
|
thisReceiverOwner.findMatchingOverriddenSymbolsFromSupertypes(components.irBuiltIns, this)
|
||||||
if (it is IrSimpleFunctionSymbol) {
|
.filterIsInstance<IrSimpleFunctionSymbol>().let {
|
||||||
overriddenSymbols += it
|
if (it.isNotEmpty()) {
|
||||||
|
overriddenSymbols = it
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun IrField.populateOverriddenSymbols(thisReceiverOwner: IrClass) {
|
private fun IrField.populateOverriddenSymbols(thisReceiverOwner: IrClass) {
|
||||||
|
|||||||
Reference in New Issue
Block a user