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

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

Issue 1776023002: Add AnalysisContext.onResultInvalidated(descriptor). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update Analysis Server. Created 4 years, 9 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/cache.dart
diff --git a/pkg/analyzer/lib/src/context/cache.dart b/pkg/analyzer/lib/src/context/cache.dart
index bbb0e698e3acb1add0ae5e9e3952a3eab1b12b99..de913f3c72bc204d6060ce542dfce7c43f7e98b4 100644
--- a/pkg/analyzer/lib/src/context/cache.dart
+++ b/pkg/analyzer/lib/src/context/cache.dart
@@ -1095,7 +1095,7 @@ enum DeltaResult {
/**
* [InvalidatedResult] describes an invalidated result.
*/
-class InvalidatedResult {
+class InvalidatedResult<V> {
/**
* The target in which the result was invalidated.
*/
@@ -1104,12 +1104,13 @@ class InvalidatedResult {
/**
* The descriptor of the result which was invalidated.
*/
- final ResultDescriptor descriptor;
+ final ResultDescriptor<V> descriptor;
/**
- * The value of the result which was invalidated.
+ * The value of the result before it was invalidated, may be the default
+ * value if the result was flushed.
*/
- final Object value;
+ final V value;
InvalidatedResult(this.entry, this.descriptor, this.value);

Powered by Google App Engine
This is Rietveld 408576698