FIR IDE: run completion resolve under lock

This commit is contained in:
Ilya Kirillov
2020-09-14 11:08:45 +03:00
parent f1c808384e
commit a52262bf97
@@ -100,16 +100,18 @@ internal class FirModuleResolveStateImpl(
toPhase: FirResolvePhase, toPhase: FirResolvePhase,
towerDataContextCollector: FirTowerDataContextCollector towerDataContextCollector: FirTowerDataContextCollector
) { ) {
firLazyDeclarationResolver.runLazyResolveWithoutLock( firFileBuilder.runCustomResolveWithPCECheck(containerFirFile, rootModuleSession.cache) {
firFunction, firLazyDeclarationResolver.runLazyResolveWithoutLock(
rootModuleSession.cache, firFunction,
containerFirFile, rootModuleSession.cache,
firIdeProvider, containerFirFile,
fromPhase = firFunction.resolvePhase, firIdeProvider,
toPhase, fromPhase = firFunction.resolvePhase,
towerDataContextCollector, toPhase,
checkPCE = false towerDataContextCollector,
) checkPCE = true
)
}
} }
} }