Chromium Code Reviews| 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 eb65a4e4091183d17e64bebb3e347860e2e51a06..3db74f9dc1ba47693c08aa01f6bf4fbaa02d885e 100644 |
| --- a/pkg/analyzer/lib/src/context/cache.dart |
| +++ b/pkg/analyzer/lib/src/context/cache.dart |
| @@ -565,7 +565,8 @@ class CacheEntry { |
| // Ask the delta to validate. |
| DeltaResult deltaResult = null; |
| if (delta != null) { |
| - deltaResult = delta.validate(_partition.context, target, descriptor); |
| + deltaResult = delta.validate(_partition.context, target, descriptor, |
| + thisData.state, thisData.value); |
| if (deltaResult == DeltaResult.STOP) { |
| return; |
| } |
| @@ -1056,10 +1057,11 @@ class Delta { |
| /** |
| * Check whether this delta affects the result described by the given |
| - * [descriptor] and [target]. |
| + * [descriptor] and [target]. The current [state] and [value] of the result |
| + * are provided. |
| */ |
| DeltaResult validate(InternalAnalysisContext context, AnalysisTarget target, |
| - ResultDescriptor descriptor) { |
| + ResultDescriptor descriptor, CacheState state, Object value) { |
|
Brian Wilkerson
2016/03/20 21:26:29
I'm not seeing where the state is used, but maybe
scheglov
2016/03/20 22:16:46
No, you're not missing.
I thought that maybe it wo
|
| return DeltaResult.INVALIDATE; |
| } |
| } |