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

Unified Diff: pkg/analysis_server/lib/src/status/get_handler.dart

Issue 1750683002: Move folderMap from AnalysisContext to ContextManager (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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: pkg/analysis_server/lib/src/status/get_handler.dart
diff --git a/pkg/analysis_server/lib/src/status/get_handler.dart b/pkg/analysis_server/lib/src/status/get_handler.dart
index a65b1610852e24e5585f7d35f58eb80f0934a40b..e2f18e04b280a4b4ac57a8c36024648003a1ffa4 100644
--- a/pkg/analysis_server/lib/src/status/get_handler.dart
+++ b/pkg/analysis_server/lib/src/status/get_handler.dart
@@ -646,8 +646,8 @@ class GetHandler {
int implicitSourceCount = 0;
int implicitLineInfoCount = 0;
int implicitLineCount = 0;
- analysisServer.folderMap
- .forEach((Folder folder, InternalAnalysisContext context) {
+ for (InternalAnalysisContext context
+ in analysisServer.analysisContexts) {
Set<Source> explicitSources = new HashSet<Source>();
Set<Source> implicitSources = new HashSet<Source>();
AnalysisCache cache = context.analysisCache;
@@ -708,7 +708,8 @@ class GetHandler {
explicitLineCount += lineCount(explicitSources, true);
implicitSourceCount += implicitSources.length;
implicitLineCount += lineCount(implicitSources, false);
- });
+ }
+ ;
scheglov 2016/02/29 19:03:37 Remove this line.
Brian Wilkerson 2016/02/29 20:45:11 Done
List<String> sourceTypeNames = sourceTypeCounts.keys.toList();
sourceTypeNames.sort();
List<String> typeNames = typeCounts.keys.toList();
@@ -1354,7 +1355,7 @@ class GetHandler {
int processorCount = errorProcessors?.length ?? 0;
buffer.write('<p><b>Error Processor count</b>: $processorCount</p>');
});
-
+
SourceFactory sourceFactory = context.sourceFactory;
if (sourceFactory is SourceFactoryImpl) {
buffer.write('<h3>Resolvers</h3>');

Powered by Google App Engine
This is Rietveld 408576698