| 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/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/element/element.dart' show CompilationUnitElement; | 10 import 'package:analyzer/dart/element/element.dart' show CompilationUnitElement; |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 } | 290 } |
| 291 | 291 |
| 292 /** | 292 /** |
| 293 * Return the set of files that are known at this moment. This set does not | 293 * Return the set of files that are known at this moment. This set does not |
| 294 * always include all added files or all implicitly used file. If a file has | 294 * always include all added files or all implicitly used file. If a file has |
| 295 * not been processed yet, it might be missing. | 295 * not been processed yet, it might be missing. |
| 296 */ | 296 */ |
| 297 Set<String> get knownFiles => _fsState.knownFilePaths; | 297 Set<String> get knownFiles => _fsState.knownFilePaths; |
| 298 | 298 |
| 299 /** | 299 /** |
| 300 * Return the number of files scheduled for analysis. |
| 301 */ |
| 302 int get numberOfFilesToAnalyze => _filesToAnalyze.length; |
| 303 |
| 304 /** |
| 300 * Return the list of files that the driver should try to analyze sooner. | 305 * Return the list of files that the driver should try to analyze sooner. |
| 301 */ | 306 */ |
| 302 List<String> get priorityFiles => _priorityFiles.toList(growable: false); | 307 List<String> get priorityFiles => _priorityFiles.toList(growable: false); |
| 303 | 308 |
| 304 /** | 309 /** |
| 305 * Set the list of files that the driver should try to analyze sooner. | 310 * Set the list of files that the driver should try to analyze sooner. |
| 306 * | 311 * |
| 307 * Every path in the list must be absolute and normalized. | 312 * Every path in the list must be absolute and normalized. |
| 308 * | 313 * |
| 309 * The driver will produce the results through the [results] stream. The | 314 * The driver will produce the results through the [results] stream. The |
| (...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1675 libraryDeclarations.add(new TopLevelDeclarationInSource( | 1680 libraryDeclarations.add(new TopLevelDeclarationInSource( |
| 1676 file.source, declaration, isExported)); | 1681 file.source, declaration, isExported)); |
| 1677 } | 1682 } |
| 1678 } | 1683 } |
| 1679 } | 1684 } |
| 1680 | 1685 |
| 1681 // We're not done yet. | 1686 // We're not done yet. |
| 1682 return false; | 1687 return false; |
| 1683 } | 1688 } |
| 1684 } | 1689 } |
| OLD | NEW |