FIR2IR: compute class localness before a loop
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c571c5c441
commit
4fba5891c7
+1
-1
@@ -70,8 +70,8 @@ class FakeOverrideGenerator(
|
|||||||
val useSiteMemberScope = klass.unsubstitutedScope(session, scopeSession, withForcedTypeCalculator = true)
|
val useSiteMemberScope = klass.unsubstitutedScope(session, scopeSession, withForcedTypeCalculator = true)
|
||||||
val superTypesCallableNames = useSiteMemberScope.getCallableNames()
|
val superTypesCallableNames = useSiteMemberScope.getCallableNames()
|
||||||
val realDeclarationSymbols = realDeclarations.filterIsInstance<FirSymbolOwner<*>>().mapTo(mutableSetOf(), FirSymbolOwner<*>::symbol)
|
val realDeclarationSymbols = realDeclarations.filterIsInstance<FirSymbolOwner<*>>().mapTo(mutableSetOf(), FirSymbolOwner<*>::symbol)
|
||||||
|
val isLocal = klass !is FirRegularClass || klass.isLocal
|
||||||
for (name in superTypesCallableNames) {
|
for (name in superTypesCallableNames) {
|
||||||
val isLocal = klass !is FirRegularClass || klass.isLocal
|
|
||||||
useSiteMemberScope.processFunctionsByName(name) { functionSymbol ->
|
useSiteMemberScope.processFunctionsByName(name) { functionSymbol ->
|
||||||
createFakeOverriddenIfNeeded(
|
createFakeOverriddenIfNeeded(
|
||||||
klass, this, isLocal, functionSymbol,
|
klass, this, isLocal, functionSymbol,
|
||||||
|
|||||||
Reference in New Issue
Block a user