Chromium Code Reviews| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 /** | 84 /** |
| 85 * A table mapping the types of analysis tasks to stopwatches used to compute | 85 * A table mapping the types of analysis tasks to stopwatches used to compute |
| 86 * how much time was spent executing each kind of task. | 86 * how much time was spent executing each kind of task. |
| 87 */ | 87 */ |
| 88 static final Map<Type, Stopwatch> stopwatchMap = | 88 static final Map<Type, Stopwatch> stopwatchMap = |
| 89 new HashMap<Type, Stopwatch>(); | 89 new HashMap<Type, Stopwatch>(); |
| 90 | 90 |
| 91 /** | 91 /** |
| 92 * The context in which the task is to be performed. | 92 * The context in which the task is to be performed. |
| 93 */ | 93 */ |
| 94 final AnalysisContext context; | 94 final InternalAnalysisContext context; |
|
Brian Wilkerson
2015/06/11 18:49:51
Clients are expected to extend AnalysisTask, but I
scheglov
2015/06/11 18:56:07
Done.
| |
| 95 | 95 |
| 96 /** | 96 /** |
| 97 * The target for which result values are being produced. | 97 * The target for which result values are being produced. |
| 98 */ | 98 */ |
| 99 final AnalysisTarget target; | 99 final AnalysisTarget target; |
| 100 | 100 |
| 101 /** | 101 /** |
| 102 * A table mapping input names to input values. | 102 * A table mapping input names to input values. |
| 103 */ | 103 */ |
| 104 Map<String, dynamic> inputs; | 104 Map<String, dynamic> inputs; |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 507 * be computed, or `false` if the inputs have been computed. | 507 * be computed, or `false` if the inputs have been computed. |
| 508 * | 508 * |
| 509 * It is safe to invoke [moveNext] after it has returned `false`. In this case | 509 * It is safe to invoke [moveNext] after it has returned `false`. In this case |
| 510 * [moveNext] has no effect and will again return `false`. | 510 * [moveNext] has no effect and will again return `false`. |
| 511 * | 511 * |
| 512 * Throws a [StateError] if the value of the current result has not been | 512 * Throws a [StateError] if the value of the current result has not been |
| 513 * provided using [currentValue]. | 513 * provided using [currentValue]. |
| 514 */ | 514 */ |
| 515 bool moveNext(); | 515 bool moveNext(); |
| 516 } | 516 } |
| OLD | NEW |