Index: pkg/analyzer/lib/src/context/context.dart |
diff --git a/pkg/analyzer/lib/src/context/context.dart b/pkg/analyzer/lib/src/context/context.dart |
index 964f67911b5208d42702f207595d4bd70018a50a..9790195f3e568cf62b9caff93b654b41b46d9738 100644 |
--- a/pkg/analyzer/lib/src/context/context.dart |
+++ b/pkg/analyzer/lib/src/context/context.dart |
@@ -1379,15 +1379,19 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
int consistencyCheckStart = JavaSystem.nanoTime(); |
HashSet<Source> changedSources = new HashSet<Source>(); |
HashSet<Source> missingSources = new HashSet<Source>(); |
- for (Source source in _cache.sources) { |
- CacheEntry entry = _cache.get(source); |
+ for (Source source in _privatePartition.sources) { |
+ CacheEntry entry = _privatePartition.get(source); |
int sourceTime = getModificationStamp(source); |
if (sourceTime != entry.modificationTime) { |
changedSources.add(source); |
+ PerformanceStatistics |
+ .cacheConsistencyValidationStatistics.numOfModified++; |
} |
if (entry.exception != null) { |
if (!exists(source)) { |
missingSources.add(source); |
+ PerformanceStatistics |
+ .cacheConsistencyValidationStatistics.numOfModified++; |
} |
} |
} |