| 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 import 'dart:developer'; | 8 import 'dart:developer'; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; | 10 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 } | 335 } |
| 336 | 336 |
| 337 /** | 337 /** |
| 338 * A description of an input to an [AnalysisTask] that can be used to compute | 338 * A description of an input to an [AnalysisTask] that can be used to compute |
| 339 * that input. | 339 * that input. |
| 340 * | 340 * |
| 341 * Clients may not extend, implement or mix-in this class. | 341 * Clients may not extend, implement or mix-in this class. |
| 342 */ | 342 */ |
| 343 abstract class ListTaskInput<E> extends TaskInput<List<E>> { | 343 abstract class ListTaskInput<E> extends TaskInput<List<E>> { |
| 344 /** | 344 /** |
| 345 * Return a task input that can be used to compute a flatten list whose |
| 346 * elements are combined [subListResult]'s associated with those elements. |
| 347 */ |
| 348 ListTaskInput /*<V>*/ toFlattenListOf( |
| 349 ListResultDescriptor /*<V>*/ subListResult); |
| 350 |
| 351 /** |
| 345 * Return a task input that can be used to compute a list whose elements are | 352 * Return a task input that can be used to compute a list whose elements are |
| 346 * the result of passing the elements of this input to the [mapper] function. | 353 * the result of passing the elements of this input to the [mapper] function. |
| 347 */ | 354 */ |
| 348 ListTaskInput /*<V>*/ toList(UnaryFunction<E, dynamic /*<V>*/ > mapper); | 355 ListTaskInput /*<V>*/ toList(UnaryFunction<E, dynamic /*<V>*/ > mapper); |
| 349 | 356 |
| 350 /** | 357 /** |
| 351 * Return a task input that can be used to compute a list whose elements are | 358 * Return a task input that can be used to compute a list whose elements are |
| 352 * [valueResult]'s associated with those elements. | 359 * [valueResult]'s associated with those elements. |
| 353 */ | 360 */ |
| 354 ListTaskInput /*<V>*/ toListOf(ResultDescriptor /*<V>*/ valueResult); | 361 ListTaskInput /*<V>*/ toListOf(ResultDescriptor /*<V>*/ valueResult); |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 /** | 725 /** |
| 719 * A work should be done, but without any special urgency. | 726 * A work should be done, but without any special urgency. |
| 720 */ | 727 */ |
| 721 NORMAL, | 728 NORMAL, |
| 722 | 729 |
| 723 /** | 730 /** |
| 724 * Nothing to do. | 731 * Nothing to do. |
| 725 */ | 732 */ |
| 726 NONE | 733 NONE |
| 727 } | 734 } |
| OLD | NEW |