| 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.model; | 5 library analyzer.src.task.model; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; | 7 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; |
| 8 import 'package:analyzer/src/task/inputs.dart'; | 8 import 'package:analyzer/src/task/inputs.dart'; |
| 9 import 'package:analyzer/task/model.dart'; | 9 import 'package:analyzer/task/model.dart'; |
| 10 | 10 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 * Initialize a newly created task descriptor to have the given [name] and to | 114 * Initialize a newly created task descriptor to have the given [name] and to |
| 115 * describe a task that takes the inputs built using the given [createTaskInpu
ts], | 115 * describe a task that takes the inputs built using the given [createTaskInpu
ts], |
| 116 * and produces the given [results]. The [buildTask] will be used to create | 116 * and produces the given [results]. The [buildTask] will be used to create |
| 117 * the instance of [AnalysisTask] thusly described. | 117 * the instance of [AnalysisTask] thusly described. |
| 118 */ | 118 */ |
| 119 TaskDescriptorImpl( | 119 TaskDescriptorImpl( |
| 120 this.name, this.buildTask, this.createTaskInputs, this.results); | 120 this.name, this.buildTask, this.createTaskInputs, this.results); |
| 121 | 121 |
| 122 @override | 122 @override |
| 123 AnalysisTask createTask(AnalysisContext context, AnalysisTarget target, | 123 AnalysisTask createTask(AnalysisContext context, AnalysisTarget target, |
| 124 Map<String, dynamic> inputs) { | 124 Map<String, dynamic> inputs, dynamic inputMemento) { |
| 125 AnalysisTask task = buildTask(context, target); | 125 AnalysisTask task = buildTask(context, target); |
| 126 task.inputs = inputs; | 126 task.inputs = inputs; |
| 127 task.inputMemento = inputMemento; |
| 127 return task; | 128 return task; |
| 128 } | 129 } |
| 129 | 130 |
| 130 @override | 131 @override |
| 131 String toString() => name; | 132 String toString() => name; |
| 132 } | 133 } |
| OLD | NEW |