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

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

Issue 10477005: Re-enable scan thresholds when opening folder (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/src/com/google/dart/tools/core/analysis/AnalysisServer.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisServer.java (revision 8212)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisServer.java (working copy)
@@ -303,10 +303,18 @@
}
/**
- * Recursively scan the specified directory for libraries to analyze
+ * Scan the specified file or recursively scan the specified directory for libraries to analyze.
+ * If the fullScan parameter is <code>false</code> and the scan takes too long or includes too
+ * many bytes of Dart source code, then the scan will stop and the specified folder marked so that
+ * it will not be analyzed.
+ *
+ * @param file the file or directory of files to scan (not <code>null</code>)
+ * @param fullScan <code>true</code> if the scan should recurse infinitely deep and for however
+ * long the scan takes or <code>false</code> if the scan should stop once the time or
+ * size threshold has been reached.
*/
- public void scan(File file) {
- queueNewTask(new LibraryScanTask(this, savedContext, file));
+ public void scan(File file, boolean fullScan) {
devoncarew 2012/06/03 16:35:53 I'd add another scan() method w/ only a File param
danrubel 2012/06/03 18:28:12 I'd rather have it apparent at each call site that
devoncarew 2012/06/04 00:51:57 Well, your call, but I think we only want this beh
+ queueNewTask(new LibraryScanTask(this, savedContext, file, fullScan));
}
/**

Powered by Google App Engine
This is Rietveld 408576698