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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:typed_data'; 7 import 'dart:typed_data';
8 8
9 import 'package:analyzer/context/context_root.dart'; 9 import 'package:analyzer/context/context_root.dart';
10 import 'package:analyzer/context/declared_variables.dart'; 10 import 'package:analyzer/context/declared_variables.dart';
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 } 1360 }
1361 return false; 1361 return false;
1362 } 1362 }
1363 1363
1364 /** 1364 /**
1365 * Add the given [driver] and schedule it to perform its work. 1365 * Add the given [driver] and schedule it to perform its work.
1366 */ 1366 */
1367 void add(AnalysisDriverGeneric driver) { 1367 void add(AnalysisDriverGeneric driver) {
1368 _drivers.add(driver); 1368 _drivers.add(driver);
1369 _hasWork.notify(); 1369 _hasWork.notify();
1370 driverWatcher?.addedDriver(driver, driver.contextRoot); 1370 if (driver is AnalysisDriver) {
1371 driverWatcher?.addedDriver(driver, driver.contextRoot);
1372 }
1371 } 1373 }
1372 1374
1373 /** 1375 /**
1374 * Notify that there is a change to the [driver], it it might need to 1376 * Notify that there is a change to the [driver], it it might need to
1375 * perform some work. 1377 * perform some work.
1376 */ 1378 */
1377 void notify(AnalysisDriverGeneric driver) { 1379 void notify(AnalysisDriverGeneric driver) {
1378 _hasWork.notify(); 1380 _hasWork.notify();
1379 _statusSupport.preTransitionToAnalyzing(); 1381 _statusSupport.preTransitionToAnalyzing();
1380 } 1382 }
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 libraryDeclarations.add(new TopLevelDeclarationInSource( 2008 libraryDeclarations.add(new TopLevelDeclarationInSource(
2007 file.source, declaration, isExported)); 2009 file.source, declaration, isExported));
2008 } 2010 }
2009 } 2011 }
2010 } 2012 }
2011 2013
2012 // We're not done yet. 2014 // We're not done yet.
2013 return false; 2015 return false;
2014 } 2016 }
2015 } 2017 }
OLDNEW
« 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