Force full analysis even if incremental analysis is available but existed is erroneous
This commit is contained in:
+2
@@ -122,6 +122,8 @@ internal class PerFileAnalysisCache(val file: KtFile, componentProvider: Compone
|
|||||||
// IF there is a cached result for ktFile and there are inBlockModifications
|
// IF there is a cached result for ktFile and there are inBlockModifications
|
||||||
fileResult = fileResult?.let { result ->
|
fileResult = fileResult?.let { result ->
|
||||||
var analysisResult = result
|
var analysisResult = result
|
||||||
|
// Force full analysis when existed is erroneous
|
||||||
|
if (analysisResult.isError()) return@let null
|
||||||
for (inBlockModification in inBlockModifications) {
|
for (inBlockModification in inBlockModifications) {
|
||||||
val resultCtx = analysisResult.bindingContext
|
val resultCtx = analysisResult.bindingContext
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user