Ejemplo n.º 1
0
 @TestOnly
 public void assertAllDirtyScopesAreNull(@NotNull Document document) {
   synchronized (myDocumentToStatusMap) {
     FileStatus status = myDocumentToStatusMap.get(document);
     assert status != null
             && !status.defensivelyMarked
             && status.wolfPassFinished
             && status.allDirtyScopesAreNull()
         : status;
   }
 }
Ejemplo n.º 2
0
  public boolean allDirtyScopesAreNull(@NotNull Document document) {
    synchronized (myDocumentToStatusMap) {
      PsiFile file = PsiDocumentManager.getInstance(myProject).getPsiFile(document);
      if (!ProblemHighlightFilter.shouldHighlightFile(file)) return true;

      FileStatus status = myDocumentToStatusMap.get(document);
      return status != null
          && !status.defensivelyMarked
          && status.wolfPassFinished
          && status.allDirtyScopesAreNull();
    }
  }