From 78fc8599e6eff98bfd1b84d52980524fb32200bb Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 12 Jul 2016 19:22:23 +0300 Subject: [PATCH] testonly --- .../codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java index b2c2a9435881..9a5f9f01b017 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java @@ -416,6 +416,7 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzerEx implements Pers } } + @TestOnly private boolean waitInOtherThread(int millis, boolean canChangeDocument) throws Throwable { Disposable disposable = Disposer.newDisposable(); // last hope protection against PsiModificationTrackerImpl.incCounter() craziness (yes, Kotlin) @@ -461,6 +462,7 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzerEx implements Pers } } + @TestOnly void waitForTermination() { myPassExecutorService.cancelAll(true); } @@ -960,6 +962,7 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzerEx implements Pers return myEditorTracker.getActiveEditors(); } + @TestOnly private static void wrap(@NotNull ThrowableRunnable runnable) { try { runnable.run();