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

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

Issue 1148413004: Fill CacheEntry.modificationTime for implicit sources. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
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 | no next file » | 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 7f8d7daae82b5c8103ee4865f6fe1576d00a1d20..d1e91720ec6653eb333683d99898301f1bba7377 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -679,6 +679,9 @@ class AnalysisContextImpl implements InternalAnalysisContext {
CacheEntry entry = _cache.get(target);
if (entry == null) {
entry = new CacheEntry(target);
+ if (target is Source) {
+ entry.modificationTime = getModificationStamp(target);
Brian Wilkerson 2015/05/22 18:58:52 Unless we explicitly want to not have a modificati
scheglov 2015/05/22 19:17:30 We use "modificationTime" only "_validateCacheCons
+ }
_cache.put(entry);
}
return entry;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698