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 5792c1c4521f541b33b5590668302eaff67205a5..1be6dfb1ab74021bd3d4ade08cf59d6c7bb8338f 100644 |
--- a/pkg/analyzer/lib/src/context/context.dart |
+++ b/pkg/analyzer/lib/src/context/context.dart |
@@ -1659,7 +1659,7 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
void _removeFromCache(Source source) { |
CacheEntry entry = _cache.remove(source); |
- if (entry != null && entry.explicitlyAdded) { |
+ if (entry != null && !entry.explicitlyAdded) { |
_implicitAnalysisEventsController |
.add(new ImplicitAnalysisEvent(source, false)); |
} |