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,
towerDataContextCollector: FirTowerDataContextCollector
) {
firLazyDeclarationResolver.runLazyResolveWithoutLock(
firFunction,
rootModuleSession.cache,
containerFirFile,
firIdeProvider,
fromPhase = firFunction.resolvePhase,
toPhase,
towerDataContextCollector,
checkPCE = false
)
firFileBuilder.runCustomResolveWithPCECheck(containerFirFile, rootModuleSession.cache) {
firLazyDeclarationResolver.runLazyResolveWithoutLock(
firFunction,
rootModuleSession.cache,
containerFirFile,
firIdeProvider,
fromPhase = firFunction.resolvePhase,
toPhase,
towerDataContextCollector,
checkPCE = true
)
}
}
}