Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1377)

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/Listener.java

Issue 10883074: Update scan, changed and discard to handle "packages" and "pubspec.yaml" (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/Listener.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/Listener.java (revision 11962)
+++ editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/Listener.java (working copy)
@@ -242,24 +242,6 @@
errors.clear();
}
- void waitForDiscarded(long milliseconds, File... files) {
- synchronized (lock) {
- long end = System.currentTimeMillis() + milliseconds;
- while (!wasDiscarded(files)) {
- long delta = end - System.currentTimeMillis();
- if (delta <= 0) {
- failDiscarded(files);
- return;
- }
- try {
- lock.wait(delta);
- } catch (InterruptedException e) {
- //$FALL-THROUGH$
- }
- }
- }
- }
-
/**
* Wait up to the specified number of milliseconds for the receiver to have the specified idle
* count. If the specified number is less than or equal to zero, then this method returns
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/FileChangedTaskTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698