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

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

Issue 1361003002: Reset Source modification stamp to -1 if it does not exist. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/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 9b8081e988f2a6c75962234edb09bebcf4558102..2a0b7d5d609ef9f32c422948e5ccc32bd3d42ce1 100644
--- a/pkg/analyzer/lib/src/context/context.dart
+++ b/pkg/analyzer/lib/src/context/context.dart
@@ -1772,7 +1772,9 @@ class AnalysisContextImpl implements InternalAnalysisContext {
}
return;
}
- } catch (e) {}
+ } catch (e) {
+ entry.modificationTime = -1;
Brian Wilkerson 2015/09/23 13:53:38 Does this need to set the modification stamp for a
scheglov 2015/09/23 15:11:27 In theory yes, but practically we invalidate every
+ }
}
// We need to invalidate the cache.
{
« no previous file with comments | « no previous file | pkg/analyzer/test/src/context/context_test.dart » ('j') | pkg/analyzer/test/src/context/context_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698