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

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

Issue 1140943005: Fix for invalidating results of a target being removed. (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 | « pkg/analyzer/lib/src/context/cache.dart ('k') | pkg/analyzer/lib/src/task/dart.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 03f69d44f4fa411ea9a48d31ca8aad44b4d67d70..c0f60ffa5f560a46e06dac4322dbe1a5e565e193 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -1656,8 +1656,8 @@ class AnalysisContextImpl implements InternalAnalysisContext {
if (entry == null) {
_createCacheEntry(source, true);
} else {
- // TODO(brianwilkerson) Implement this.
-// _propagateInvalidation(source, entry);
+ entry.modificationTime = getModificationStamp(source);
+ entry.setState(CONTENT, CacheState.INVALID);
}
}
@@ -1688,8 +1688,7 @@ class AnalysisContextImpl implements InternalAnalysisContext {
} catch (e) {}
}
// We need to invalidate the cache.
- // TODO(brianwilkerson) Implement this.
-// _propagateInvalidation(source, entry);
+ entry.setState(CONTENT, CacheState.INVALID);
}
/**
« no previous file with comments | « pkg/analyzer/lib/src/context/cache.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698