| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 } | 204 } |
| 205 stopwatch.start(); | 205 stopwatch.start(); |
| 206 // | 206 // |
| 207 // Actually perform the task. | 207 // Actually perform the task. |
| 208 // | 208 // |
| 209 try { | 209 try { |
| 210 internalPerform(); | 210 internalPerform(); |
| 211 } finally { | 211 } finally { |
| 212 stopwatch.stop(); | 212 stopwatch.stop(); |
| 213 } | 213 } |
| 214 } on AnalysisException catch (exception) { | 214 } on AnalysisException { |
| 215 rethrow; | 215 rethrow; |
| 216 } catch (exception, stackTrace) { | 216 } catch (exception, stackTrace) { |
| 217 throw new AnalysisException( | 217 throw new AnalysisException( |
| 218 'Unexpected exception while performing $description', | 218 'Unexpected exception while performing $description', |
| 219 new CaughtException(exception, stackTrace)); | 219 new CaughtException(exception, stackTrace)); |
| 220 } | 220 } |
| 221 } | 221 } |
| 222 } | 222 } |
| 223 | 223 |
| 224 /** | 224 /** |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 * be computed, or `false` if the inputs have been computed. | 374 * be computed, or `false` if the inputs have been computed. |
| 375 * | 375 * |
| 376 * It is safe to invoke [moveNext] after it has returned `false`. In this case | 376 * It is safe to invoke [moveNext] after it has returned `false`. In this case |
| 377 * [moveNext] has no effect and will again return `false`. | 377 * [moveNext] has no effect and will again return `false`. |
| 378 * | 378 * |
| 379 * Throws a [StateError] if the value of the current result has not been | 379 * Throws a [StateError] if the value of the current result has not been |
| 380 * provided using [currentValue]. | 380 * provided using [currentValue]. |
| 381 */ | 381 */ |
| 382 bool moveNext(); | 382 bool moveNext(); |
| 383 } | 383 } |
| OLD | NEW |