| 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 f539e2ed193549209e3d6ba4f9421ec6678dc7c6..7e6e0a05ef578a9c8ebc480f42bc7cc0676ccce3 100644
|
| --- a/pkg/analyzer/lib/src/context/cache.dart
|
| +++ b/pkg/analyzer/lib/src/context/cache.dart
|
| @@ -359,8 +359,9 @@ class CacheEntry {
|
| }
|
| });
|
| _resultMap.clear();
|
| - if (target is ElementImpl) {
|
| - (target as ElementImpl).setModifier(Modifier.CACHE_KEY, false);
|
| + AnalysisTarget oldTarget = target;
|
| + if (oldTarget is ElementImpl) {
|
| + oldTarget.setModifier(Modifier.CACHE_KEY, false);
|
| }
|
| }
|
|
|
|
|