Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: pkg/analyzer/lib/src/dart/analysis/driver.dart

Issue 2815913006: Fix failure using custom drivers with AnalysisDriverScheduler (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/analysis/driver.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/driver.dart b/pkg/analyzer/lib/src/dart/analysis/driver.dart
index c8309aa9f46ff8cd3f32ec7d5f459ee45e033334..3d90bd482beb7fee9a1790ab2f6d99be683c1480 100644
--- a/pkg/analyzer/lib/src/dart/analysis/driver.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -1367,7 +1367,9 @@ class AnalysisDriverScheduler {
void add(AnalysisDriverGeneric driver) {
_drivers.add(driver);
_hasWork.notify();
- driverWatcher?.addedDriver(driver, driver.contextRoot);
+ if (driver is AnalysisDriver) {
+ driverWatcher?.addedDriver(driver, driver.contextRoot);
+ }
}
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698