FIR2IR: rename unmatchedReceiver -> unmatchedOwner
This commit is contained in:
committed by
Space Team
parent
08d351db57
commit
4cb41f8e82
+6
-6
@@ -1277,8 +1277,8 @@ class Fir2IrDeclarationStorage(
|
|||||||
createIrFunction(fir, irParent, predefinedOrigin = declarationOrigin).symbol
|
createIrFunction(fir, irParent, predefinedOrigin = declarationOrigin).symbol
|
||||||
}
|
}
|
||||||
is FirSimpleFunction -> {
|
is FirSimpleFunction -> {
|
||||||
val unmatchedReceiver = fakeOverrideOwnerLookupTag != firFunctionSymbol.containingClassLookupTag()
|
val unmatchedOwner = fakeOverrideOwnerLookupTag != firFunctionSymbol.containingClassLookupTag()
|
||||||
if (unmatchedReceiver) {
|
if (unmatchedOwner) {
|
||||||
generateLazyFakeOverrides(fir.name, fakeOverrideOwnerLookupTag)
|
generateLazyFakeOverrides(fir.name, fakeOverrideOwnerLookupTag)
|
||||||
}
|
}
|
||||||
val originalSymbol = getIrCallableSymbol(
|
val originalSymbol = getIrCallableSymbol(
|
||||||
@@ -1298,7 +1298,7 @@ class Fir2IrDeclarationStorage(
|
|||||||
},
|
},
|
||||||
forceTopLevelPrivate = forceTopLevelPrivate
|
forceTopLevelPrivate = forceTopLevelPrivate
|
||||||
) as IrFunctionSymbol
|
) as IrFunctionSymbol
|
||||||
if (unmatchedReceiver && fakeOverrideOwnerLookupTag is ConeClassLookupTagWithFixedSymbol) {
|
if (unmatchedOwner && fakeOverrideOwnerLookupTag is ConeClassLookupTagWithFixedSymbol) {
|
||||||
val originalFunction = originalSymbol.owner as IrSimpleFunction
|
val originalFunction = originalSymbol.owner as IrSimpleFunction
|
||||||
fakeOverrideOwnerLookupTag.findIrFakeOverride(fir.name, originalFunction) as IrFunctionSymbol? ?: originalSymbol
|
fakeOverrideOwnerLookupTag.findIrFakeOverride(fir.name, originalFunction) as IrFunctionSymbol? ?: originalSymbol
|
||||||
} else {
|
} else {
|
||||||
@@ -1346,8 +1346,8 @@ class Fir2IrDeclarationStorage(
|
|||||||
return localStorage.getDelegatedProperty(fir)?.symbol ?: getIrVariableSymbol(fir)
|
return localStorage.getDelegatedProperty(fir)?.symbol ?: getIrVariableSymbol(fir)
|
||||||
}
|
}
|
||||||
val containingClassLookupTag = firPropertySymbol.containingClassLookupTag()
|
val containingClassLookupTag = firPropertySymbol.containingClassLookupTag()
|
||||||
val unmatchedReceiver = fakeOverrideOwnerLookupTag != containingClassLookupTag
|
val unmatchedOwner = fakeOverrideOwnerLookupTag != containingClassLookupTag
|
||||||
if (unmatchedReceiver) {
|
if (unmatchedOwner) {
|
||||||
generateLazyFakeOverrides(fir.name, fakeOverrideOwnerLookupTag)
|
generateLazyFakeOverrides(fir.name, fakeOverrideOwnerLookupTag)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1387,7 +1387,7 @@ class Fir2IrDeclarationStorage(
|
|||||||
return containingClassLookupTag.getIrCallableSymbol()
|
return containingClassLookupTag.getIrCallableSymbol()
|
||||||
}
|
}
|
||||||
|
|
||||||
return if (unmatchedReceiver && fakeOverrideOwnerLookupTag is ConeClassLookupTagWithFixedSymbol) {
|
return if (unmatchedOwner && fakeOverrideOwnerLookupTag is ConeClassLookupTagWithFixedSymbol) {
|
||||||
fakeOverrideOwnerLookupTag.findIrFakeOverride(fir.name, originalProperty) as IrPropertySymbol
|
fakeOverrideOwnerLookupTag.findIrFakeOverride(fir.name, originalProperty) as IrPropertySymbol
|
||||||
} else {
|
} else {
|
||||||
originalSymbol
|
originalSymbol
|
||||||
|
|||||||
Reference in New Issue
Block a user