Index: pkg/analyzer/lib/src/generated/engine.dart |
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart |
index 52290d6aea7b8ad32f3b0ecbcd0ef2db6c879151..139edeb41fd10cd3e4bd497d879df300ead9927a 100644 |
--- a/pkg/analyzer/lib/src/generated/engine.dart |
+++ b/pkg/analyzer/lib/src/generated/engine.dart |
@@ -4599,7 +4599,7 @@ class AnalysisContextImpl implements InternalAnalysisContext { |
void _removeFromCache(Source source) { |
SourceEntry entry = _cache.remove(source); |
- if (entry != null && entry.explicitlyAdded) { |
+ if (entry != null && !entry.explicitlyAdded) { |
_implicitAnalysisEventsController |
.add(new ImplicitAnalysisEvent(source, false)); |
} |