| 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/java_engine.dart'; | 10 import 'package:analyzer/src/generated/java_engine.dart'; |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 * A description of an input to an [AnalysisTask] that can be used to compute | 272 * A description of an input to an [AnalysisTask] that can be used to compute |
| 273 * that input. | 273 * that input. |
| 274 * | 274 * |
| 275 * Clients are not expected to subtype this class. | 275 * Clients are not expected to subtype this class. |
| 276 */ | 276 */ |
| 277 abstract class ListTaskInput<E> extends TaskInput<List<E>> { | 277 abstract class ListTaskInput<E> extends TaskInput<List<E>> { |
| 278 /** | 278 /** |
| 279 * Return a task input that can be used to compute a list whose elements are | 279 * Return a task input that can be used to compute a list whose elements are |
| 280 * the result of passing the elements of this input to the [mapper] function. | 280 * the result of passing the elements of this input to the [mapper] function. |
| 281 */ | 281 */ |
| 282 TaskInput<List /*<V>*/ > toList(UnaryFunction<E, dynamic /*<V>*/ > mapper); | 282 ListTaskInput /*<V>*/ toList(UnaryFunction<E, dynamic /*<V>*/ > mapper); |
| 283 | 283 |
| 284 /** | 284 /** |
| 285 * Return a task input that can be used to compute a list whose elements are | 285 * Return a task input that can be used to compute a list whose elements are |
| 286 * [valueResult]'s associated with those elements. | 286 * [valueResult]'s associated with those elements. |
| 287 */ | 287 */ |
| 288 TaskInput<List /*<V>*/ > toListOf(ResultDescriptor /*<V>*/ valueResult); | 288 ListTaskInput /*<V>*/ toListOf(ResultDescriptor /*<V>*/ valueResult); |
| 289 | 289 |
| 290 /** | 290 /** |
| 291 * Return a task input that can be used to compute a map whose keys are the | 291 * Return a task input that can be used to compute a map whose keys are the |
| 292 * elements of this input and whose values are the result of passing the | 292 * elements of this input and whose values are the result of passing the |
| 293 * corresponding key to the [mapper] function. | 293 * corresponding key to the [mapper] function. |
| 294 */ | 294 */ |
| 295 TaskInput<Map<E, dynamic /*V*/ >> toMap( | 295 TaskInput<Map<E, dynamic /*V*/ >> toMap( |
| 296 UnaryFunction<E, dynamic /*<V>*/ > mapper); | 296 UnaryFunction<E, dynamic /*<V>*/ > mapper); |
| 297 | 297 |
| 298 /** | 298 /** |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 * be computed, or `false` if the inputs have been computed. | 435 * be computed, or `false` if the inputs have been computed. |
| 436 * | 436 * |
| 437 * It is safe to invoke [moveNext] after it has returned `false`. In this case | 437 * It is safe to invoke [moveNext] after it has returned `false`. In this case |
| 438 * [moveNext] has no effect and will again return `false`. | 438 * [moveNext] has no effect and will again return `false`. |
| 439 * | 439 * |
| 440 * Throws a [StateError] if the value of the current result has not been | 440 * Throws a [StateError] if the value of the current result has not been |
| 441 * provided using [currentValue]. | 441 * provided using [currentValue]. |
| 442 */ | 442 */ |
| 443 bool moveNext(); | 443 bool moveNext(); |
| 444 } | 444 } |
| OLD | NEW |