OLD | NEW |
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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 } | 1303 } |
1304 | 1304 |
1305 /** | 1305 /** |
1306 * A generic schedulable interface via the AnalysisDriverScheduler. Currently | 1306 * A generic schedulable interface via the AnalysisDriverScheduler. Currently |
1307 * only implemented by [AnalysisDriver] and the angular plugin, at least as | 1307 * only implemented by [AnalysisDriver] and the angular plugin, at least as |
1308 * a temporary measure until the official plugin API is ready (and a different | 1308 * a temporary measure until the official plugin API is ready (and a different |
1309 * scheduler is used) | 1309 * scheduler is used) |
1310 */ | 1310 */ |
1311 abstract class AnalysisDriverGeneric { | 1311 abstract class AnalysisDriverGeneric { |
1312 /** | 1312 /** |
1313 * Information about the context root being analyzed by this driver. | |
1314 */ | |
1315 ContextRoot get contextRoot; | |
1316 | |
1317 /** | |
1318 * Return `true` if the driver has a file to analyze. | 1313 * Return `true` if the driver has a file to analyze. |
1319 */ | 1314 */ |
1320 bool get hasFilesToAnalyze; | 1315 bool get hasFilesToAnalyze; |
1321 | 1316 |
1322 /** | 1317 /** |
1323 * Return the priority of work that the driver needs to perform. | 1318 * Return the priority of work that the driver needs to perform. |
1324 */ | 1319 */ |
1325 AnalysisDriverPriority get workPriority; | 1320 AnalysisDriverPriority get workPriority; |
1326 | 1321 |
1327 /** | 1322 /** |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2058 libraryDeclarations.add(new TopLevelDeclarationInSource( | 2053 libraryDeclarations.add(new TopLevelDeclarationInSource( |
2059 file.source, declaration, isExported)); | 2054 file.source, declaration, isExported)); |
2060 } | 2055 } |
2061 } | 2056 } |
2062 } | 2057 } |
2063 | 2058 |
2064 // We're not done yet. | 2059 // We're not done yet. |
2065 return false; | 2060 return false; |
2066 } | 2061 } |
2067 } | 2062 } |
OLD | NEW |