| 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 be6bd3482c17edd210afcaebaddf01003140df2c..5a4ef821039309718ec4b25bbf6d8c305dc0c544 100644
|
| --- a/pkg/analyzer/lib/src/context/cache.dart
|
| +++ b/pkg/analyzer/lib/src/context/cache.dart
|
| @@ -434,6 +434,16 @@ class CacheEntry {
|
| }
|
|
|
| /**
|
| + * Invalidates all the results of this entry, with propagation.
|
| + */
|
| + void _invalidateAll() {
|
| + List<ResultDescriptor> results = _resultMap.keys.toList();
|
| + for (ResultDescriptor result in results) {
|
| + _invalidate(result, true);
|
| + }
|
| + }
|
| +
|
| + /**
|
| * Set the [dependedOn] on which this result depends.
|
| */
|
| void _setDependedOnResults(ResultData thisData, TargetedResult thisResult,
|
| @@ -716,7 +726,10 @@ abstract class CachePartition {
|
| for (CacheFlushManager flushManager in _flushManagerMap.values) {
|
| flushManager.targetRemoved(target);
|
| }
|
| - _targetMap.remove(target);
|
| + CacheEntry entry = _targetMap.remove(target);
|
| + if (entry != null) {
|
| + entry._invalidateAll();
|
| + }
|
| }
|
|
|
| /**
|
|
|