| Index: pkg/analyzer/lib/src/task/driver.dart
|
| diff --git a/pkg/analyzer/lib/src/task/driver.dart b/pkg/analyzer/lib/src/task/driver.dart
|
| index f077b3a3f8d07a1279745d4712fb7b1e402938fa..2fea201c9c4a93afc5a237621930a5bd51a29e17 100644
|
| --- a/pkg/analyzer/lib/src/task/driver.dart
|
| +++ b/pkg/analyzer/lib/src/task/driver.dart
|
| @@ -239,6 +239,20 @@ abstract class ExtendedAnalysisContext implements InternalAnalysisContext {
|
| }
|
|
|
| /**
|
| + * An exception indicating that an attempt was made to perform a task on a
|
| + * target while gathering the inputs to perform the same task for the same
|
| + * target.
|
| + */
|
| +class InfiniteTaskLoopException extends AnalysisException {
|
| + /**
|
| + * Initialize a newly created exception to represent an attempt to perform
|
| + * the task for the target represented by the given [item].
|
| + */
|
| + InfiniteTaskLoopException(WorkItem item) : super(
|
| + 'Infinite loop while performing task ${item.descriptor.name} for ${item.target}');
|
| +}
|
| +
|
| +/**
|
| * A description of a single anaysis task that can be performed to advance
|
| * analysis.
|
| */
|
| @@ -367,6 +381,9 @@ class WorkItem {
|
| }
|
| return null;
|
| }
|
| +
|
| + @override
|
| + String toString() => 'Run $descriptor on $target';
|
| }
|
|
|
| /**
|
| @@ -443,16 +460,3 @@ class WorkOrder implements Iterator<WorkItem> {
|
| return false;
|
| }
|
| }
|
| -
|
| -/**
|
| - * An exception indicating that an attempt was made to perform a task on a
|
| - * target while gathering the inputs to perform the same task for the same
|
| - * target.
|
| - */
|
| -class InfiniteTaskLoopException extends AnalysisException {
|
| - /**
|
| - * Initialize a newly created exception to represent an attempt to perform
|
| - * the task for the target represented by the given [item].
|
| - */
|
| - InfiniteTaskLoopException(WorkItem item) : super('Infinite loop while performing task ${item.descriptor.name} for ${item.target}');
|
| -}
|
|
|