| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library analyzer.task.model; | 5 library analyzer.task.model; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; | 9 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; |
| 10 import 'package:analyzer/src/generated/error.dart' show AnalysisError; | 10 import 'package:analyzer/src/generated/error.dart' show AnalysisError; |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 * Return a list of all of the errors associated with the given [source]. | 584 * Return a list of all of the errors associated with the given [source]. |
| 585 * The list of errors will be empty if the source is not known to the context | 585 * The list of errors will be empty if the source is not known to the context |
| 586 * or if there are no errors in the source. The errors contained in the list | 586 * or if there are no errors in the source. The errors contained in the list |
| 587 * can be incomplete. | 587 * can be incomplete. |
| 588 */ | 588 */ |
| 589 List<AnalysisError> getErrors(Source source); | 589 List<AnalysisError> getErrors(Source source); |
| 590 | 590 |
| 591 /** | 591 /** |
| 592 * Return the next [TargetedResult] that this work manager wants to be | 592 * Return the next [TargetedResult] that this work manager wants to be |
| 593 * computed, or `null` if this manager doesn't need any new results. | 593 * computed, or `null` if this manager doesn't need any new results. |
| 594 * |
| 595 * Note, that it is not guaranteed that this result will be computed, it is |
| 596 * up to the work manager to check whether the result is already computed |
| 597 * (for example during the next [getNextResult] invocation) or computation |
| 598 * of the same result should be requested again. |
| 594 */ | 599 */ |
| 595 TargetedResult getNextResult(); | 600 TargetedResult getNextResult(); |
| 596 | 601 |
| 597 /** | 602 /** |
| 598 * Return the priority if the next work order this work manager want to be | 603 * Return the priority if the next work order this work manager want to be |
| 599 * computed. The [AnalysisDriver] will perform the work order with | 604 * computed. The [AnalysisDriver] will perform the work order with |
| 600 * the highest priority. | 605 * the highest priority. |
| 601 * | 606 * |
| 602 * Even if the returned value is [WorkOrderPriority.NONE], it still does not | 607 * Even if the returned value is [WorkOrderPriority.NONE], it still does not |
| 603 * guarantee that [getNextResult] will return not `null`. | 608 * guarantee that [getNextResult] will return not `null`. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 /** | 646 /** |
| 642 * A work should be done, but without any special urgency. | 647 * A work should be done, but without any special urgency. |
| 643 */ | 648 */ |
| 644 NORMAL, | 649 NORMAL, |
| 645 | 650 |
| 646 /** | 651 /** |
| 647 * Nothing to do. | 652 * Nothing to do. |
| 648 */ | 653 */ |
| 649 NONE | 654 NONE |
| 650 } | 655 } |
| OLD | NEW |