| 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.src.task.inputs; | 5 library analyzer.src.task.inputs; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/task/model.dart'; | 9 import 'package:analyzer/task/model.dart'; |
| 10 | 10 |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 */ | 425 */ |
| 426 final TaskInput baseInput; | 426 final TaskInput baseInput; |
| 427 | 427 |
| 428 /** | 428 /** |
| 429 * The function used to map the value of the base input to the list of values. | 429 * The function used to map the value of the base input to the list of values. |
| 430 */ | 430 */ |
| 431 final Mapper<Object, List<E>> mapper; | 431 final Mapper<Object, List<E>> mapper; |
| 432 | 432 |
| 433 /** | 433 /** |
| 434 * Initialize a newly created task input that computes the input by accessing | 434 * Initialize a newly created task input that computes the input by accessing |
| 435 * the given [result] associated with the given [target]. | 435 * the given [baseInput] associated with the given [mapper]. |
| 436 */ | 436 */ |
| 437 ObjectToListTaskInput(this.baseInput, this.mapper); | 437 ObjectToListTaskInput(this.baseInput, this.mapper); |
| 438 | 438 |
| 439 @override | 439 @override |
| 440 TaskInputBuilder<List<E>> createBuilder() => | 440 TaskInputBuilder<List<E>> createBuilder() => |
| 441 new ObjectToListTaskInputBuilder<E>(this); | 441 new ObjectToListTaskInputBuilder<E>(this); |
| 442 | 442 |
| 443 @override | 443 @override |
| 444 ListTaskInput/*<V>*/ toFlattenListOf/*<V>*/( | 444 ListTaskInput/*<V>*/ toFlattenListOf/*<V>*/( |
| 445 ListResultDescriptor/*<V>*/ subListResult) { | 445 ListResultDescriptor/*<V>*/ subListResult) { |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 return false; | 987 return false; |
| 988 } | 988 } |
| 989 _baseListElement = _baseList[_baseListIndex]; | 989 _baseListElement = _baseList[_baseListIndex]; |
| 990 currentBuilder = input.generateTaskInputs(_baseListElement).createBuilder(); | 990 currentBuilder = input.generateTaskInputs(_baseListElement).createBuilder(); |
| 991 return currentBuilder.moveNext(); | 991 return currentBuilder.moveNext(); |
| 992 } | 992 } |
| 993 | 993 |
| 994 void _addResultElement(B baseElement, E resultElement); | 994 void _addResultElement(B baseElement, E resultElement); |
| 995 void _initResultValue(); | 995 void _initResultValue(); |
| 996 } | 996 } |
| OLD | NEW |