Index: pkg/analysis_server/lib/src/analysis_server.dart |
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart |
index bad954c6c7ac1dccaaf732881d9474235c815967..20a2f407a86b98afa0d0dbff2667c9430b104dab 100644 |
--- a/pkg/analysis_server/lib/src/analysis_server.dart |
+++ b/pkg/analysis_server/lib/src/analysis_server.dart |
@@ -733,14 +733,15 @@ class AnalysisServer { |
} |
/** |
- * Trigger reanalysis of all files from disk. |
+ * Trigger reanalysis of all files in the given list of analysis [roots], or |
+ * everything if the analysis roots is `null`. |
*/ |
- void reanalyze() { |
+ void reanalyze(List<Resource> roots) { |
// Clear any operations that are pending. |
operationQueue.clear(); |
scheglov
2015/03/30 19:41:44
What is there were pending operations for other ro
Brian Wilkerson
2015/03/30 20:33:38
Good catch!
|
// Instruct the contextDirectoryManager to rebuild all contexts from |
// scratch. |
- contextDirectoryManager.refresh(); |
+ contextDirectoryManager.refresh(roots); |
} |
/** |