Fixed bug in analysis loop that could result in dependent files not getting invalidated due to a timeout.

This commit is contained in:
Eric Traut 2019-03-14 23:39:29 -07:00
parent b7793cbe29
commit 0ce70b3b98

View File

@ -292,10 +292,6 @@ export class Program {
while (true) {
fileToAnalyze.sourceFile.doTypeAnalysis(options, importMap);
if (timeElapsedCallback()) {
return true;
}
if (!fileToAnalyze.sourceFile.isTypeAnalysisRequired()) {
break;
} else {
@ -321,6 +317,10 @@ export class Program {
}
}
}
if (timeElapsedCallback()) {
return true;
}
}
}