rerun too complex dfa on changes not affecting text length

This commit is contained in:
peter
2012-04-18 19:28:40 +02:00
parent 926694bd05
commit 0911adf426
@@ -125,7 +125,7 @@ public class DataFlowRunner {
int count = 0;
while (!queue.isEmpty()) {
if (count % 50 == 0 && !unitTestMode && System.currentTimeMillis() - before > timeLimit) {
psiBlock.putUserData(TOO_EXPENSIVE_SIZE, psiBlock.getTextLength());
psiBlock.putUserData(TOO_EXPENSIVE_SIZE, psiBlock.getText().hashCode());
return RunnerResult.TOO_COMPLEX;
}
ProgressManager.checkCanceled();