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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 @override | 343 @override |
344 ListTaskInput<E> of(AnalysisTarget target, {bool flushOnAccess: false}); | 344 ListTaskInput<E> of(AnalysisTarget target, {bool flushOnAccess: false}); |
345 } | 345 } |
346 | 346 |
347 /** | 347 /** |
348 * A description of an input to an [AnalysisTask] that can be used to compute | 348 * A description of an input to an [AnalysisTask] that can be used to compute |
349 * that input. | 349 * that input. |
350 * | 350 * |
351 * Clients may not extend, implement or mix-in this class. | 351 * Clients may not extend, implement or mix-in this class. |
352 */ | 352 */ |
353 abstract class ListTaskInput<E> extends TaskInput<List<E>> { | 353 abstract class ListTaskInput<E> implements TaskInput<List<E>> { |
354 /** | 354 /** |
355 * Return a task input that can be used to compute a flatten list whose | 355 * Return a task input that can be used to compute a flatten list whose |
356 * elements are combined [subListResult]'s associated with those elements. | 356 * elements are combined [subListResult]'s associated with those elements. |
357 */ | 357 */ |
358 ListTaskInput /*<V>*/ toFlattenListOf( | 358 ListTaskInput /*<V>*/ toFlattenListOf( |
359 ListResultDescriptor /*<V>*/ subListResult); | 359 ListResultDescriptor /*<V>*/ subListResult); |
360 | 360 |
361 /** | 361 /** |
362 * Return a task input that can be used to compute a list whose elements are | 362 * Return a task input that can be used to compute a list whose elements are |
363 * the result of passing the elements of this input to the [mapper] function. | 363 * the result of passing the elements of this input to the [mapper] function. |
(...skipping 21 matching lines...) Expand all Loading... |
385 */ | 385 */ |
386 MapTaskInput<AnalysisTarget, dynamic /*V*/ > toMapOf( | 386 MapTaskInput<AnalysisTarget, dynamic /*V*/ > toMapOf( |
387 ResultDescriptor /*<V>*/ valueResult); | 387 ResultDescriptor /*<V>*/ valueResult); |
388 } | 388 } |
389 | 389 |
390 /** | 390 /** |
391 * A description of an input with a [Map] based values. | 391 * A description of an input with a [Map] based values. |
392 * | 392 * |
393 * Clients may not extend, implement or mix-in this class. | 393 * Clients may not extend, implement or mix-in this class. |
394 */ | 394 */ |
395 abstract class MapTaskInput<K, V> extends TaskInput<Map<K, V>> { | 395 abstract class MapTaskInput<K, V> implements TaskInput<Map<K, V>> { |
396 /** | 396 /** |
397 * [V] must be a [List]. | 397 * [V] must be a [List]. |
398 * Return a task input that can be used to compute a list whose elements are | 398 * Return a task input that can be used to compute a list whose elements are |
399 * the result of passing keys [K] and the corresponding elements of [V] to | 399 * the result of passing keys [K] and the corresponding elements of [V] to |
400 * the [mapper] function. | 400 * the [mapper] function. |
401 */ | 401 */ |
402 TaskInput<List /*<E>*/ > toFlattenList( | 402 TaskInput<List /*<E>*/ > toFlattenList( |
403 BinaryFunction<K, dynamic /*element of V*/, dynamic /*<E>*/ > mapper); | 403 BinaryFunction<K, dynamic /*element of V*/, dynamic /*<E>*/ > mapper); |
404 } | 404 } |
405 | 405 |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 /** | 735 /** |
736 * A work should be done, but without any special urgency. | 736 * A work should be done, but without any special urgency. |
737 */ | 737 */ |
738 NORMAL, | 738 NORMAL, |
739 | 739 |
740 /** | 740 /** |
741 * Nothing to do. | 741 * Nothing to do. |
742 */ | 742 */ |
743 NONE | 743 NONE |
744 } | 744 } |
OLD | NEW |