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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/search/ui/FindReferencesAction_NEW.java

Issue 402433003: Search only for potential name references to Class members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/search/element_references.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/search/ui/FindReferencesAction_NEW.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/search/ui/FindReferencesAction_NEW.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/search/ui/FindReferencesAction_NEW.java
index 452f2fa97c58ebc887030a65e42522002f80070f..0e9cb2f2ef95e2b9b9541d383721f02d8f34b57e 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/search/ui/FindReferencesAction_NEW.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/search/ui/FindReferencesAction_NEW.java
@@ -98,7 +98,7 @@ public class FindReferencesAction_NEW extends AbstractDartSelectionAction {
});
}
});
- Uninterruptibles.awaitUninterruptibly(latch, 15, TimeUnit.MINUTES);
+ Uninterruptibles.awaitUninterruptibly(latch, 1, TimeUnit.MINUTES);
return allResults;
}
});
@@ -186,6 +186,7 @@ public class FindReferencesAction_NEW extends AbstractDartSelectionAction {
final List<SearchResult> allResults = Lists.newArrayList();
if (element != null) {
final CountDownLatch latch = new CountDownLatch(1);
+// long start = System.nanoTime();
Brian Wilkerson 2014/07/16 20:21:58 Remove debugging code?
DartCore.getAnalysisServer().searchElementReferences(
filePath,
offset,
@@ -206,7 +207,8 @@ public class FindReferencesAction_NEW extends AbstractDartSelectionAction {
});
}
});
- Uninterruptibles.awaitUninterruptibly(latch, 5, TimeUnit.SECONDS);
+ Uninterruptibles.awaitUninterruptibly(latch, 1, TimeUnit.MINUTES);
+// System.out.println("time: " + (System.nanoTime() - start) / 1000000.0);
}
return allResults;
}
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/search/element_references.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698