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

Unified Diff: pkg/analyzer/lib/src/context/context.dart

Issue 1130423003: Validate modifications times only for sources. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « no previous file | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b320e9b30aec1fcf668bc272f21b783959ecae08..82e486a59ae03c71a8e91efc3b517fe7410ac50f 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -1824,8 +1824,9 @@ class AnalysisContextImpl implements InternalAnalysisContext {
HashSet<Source> missingSources = new HashSet<Source>();
MapIterator<AnalysisTarget, CacheEntry> iterator = _cache.iterator();
while (iterator.moveNext()) {
- Source source = iterator.key.source;
- if (source != null) {
+ AnalysisTarget target = iterator.key;
+ if (target is Source) {
+ Source source = target;
Brian Wilkerson 2015/05/12 01:03:22 Or just use 'target' in the then block...
CacheEntry entry = iterator.value;
int sourceTime = getModificationStamp(source);
if (sourceTime != entry.modificationTime) {
« no previous file with comments | « no previous file | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698