| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 factory TaskDescriptor(String name, BuildTask buildTask, | 244 factory TaskDescriptor(String name, BuildTask buildTask, |
| 245 CreateTaskInputs inputBuilder, List<ResultDescriptor> results) = | 245 CreateTaskInputs inputBuilder, List<ResultDescriptor> results) = |
| 246 TaskDescriptorImpl; | 246 TaskDescriptorImpl; |
| 247 | 247 |
| 248 /** | 248 /** |
| 249 * Return the builder used to build the inputs to the task. | 249 * Return the builder used to build the inputs to the task. |
| 250 */ | 250 */ |
| 251 CreateTaskInputs get createTaskInputs; | 251 CreateTaskInputs get createTaskInputs; |
| 252 | 252 |
| 253 /** | 253 /** |
| 254 * Return the name of the task being described. |
| 255 */ |
| 256 String get name; |
| 257 |
| 258 /** |
| 254 * Return a list of the analysis results that will be computed by this task. | 259 * Return a list of the analysis results that will be computed by this task. |
| 255 */ | 260 */ |
| 256 List<ResultDescriptor> get results; | 261 List<ResultDescriptor> get results; |
| 257 | 262 |
| 258 /** | 263 /** |
| 259 * Create and return a task that is described by this descriptor that can be | 264 * Create and return a task that is described by this descriptor that can be |
| 260 * used to compute results based on the given [inputs]. | 265 * used to compute results based on the given [inputs]. |
| 261 */ | 266 */ |
| 262 AnalysisTask createTask(AnalysisContext context, AnalysisTarget target, | 267 AnalysisTask createTask(AnalysisContext context, AnalysisTarget target, |
| 263 Map<String, dynamic> inputs); | 268 Map<String, dynamic> inputs); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 * be computed, or `false` if the inputs have been computed. | 332 * be computed, or `false` if the inputs have been computed. |
| 328 * | 333 * |
| 329 * It is safe to invoke [moveNext] after it has returned `false`. In this case | 334 * It is safe to invoke [moveNext] after it has returned `false`. In this case |
| 330 * [moveNext] has no effect and will again return `false`. | 335 * [moveNext] has no effect and will again return `false`. |
| 331 * | 336 * |
| 332 * Throws a [StateError] if the value of the current result has not been | 337 * Throws a [StateError] if the value of the current result has not been |
| 333 * provided using [currentValue]. | 338 * provided using [currentValue]. |
| 334 */ | 339 */ |
| 335 bool moveNext(); | 340 bool moveNext(); |
| 336 } | 341 } |
| OLD | NEW |