Index: pkg/analyzer/lib/src/task/dart_work_manager.dart |
diff --git a/pkg/analyzer/lib/src/task/dart_work_manager.dart b/pkg/analyzer/lib/src/task/dart_work_manager.dart |
index 8c8176aef3f0f190ad8291e389cfa34dff26769e..3d6dc3375e1ee50ab55b63c6de1c55f1212a3d63 100644 |
--- a/pkg/analyzer/lib/src/task/dart_work_manager.dart |
+++ b/pkg/analyzer/lib/src/task/dart_work_manager.dart |
@@ -82,7 +82,7 @@ class DartWorkManager implements WorkManager { |
* Initialize a newly created manager. |
*/ |
DartWorkManager(this.context) { |
- analysisCache.onResultInvalidated.listen((InvalidatedResult event) { |
+ context.onResultInvalidated.listen((InvalidatedResult event) { |
if (event.descriptor == LIBRARY_ERRORS_READY) { |
CacheEntry entry = event.entry; |
if (entry.explicitlyAdded && |