| 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 import 'dart:developer'; | 8 import 'dart:developer'; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; | 10 import 'package:analyzer/src/generated/engine.dart' hide AnalysisTask; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 * this task is expected to produce) or the [caughtException] should be set. | 204 * this task is expected to produce) or the [caughtException] should be set. |
| 205 * | 205 * |
| 206 * Clients may not override this method. | 206 * Clients may not override this method. |
| 207 */ | 207 */ |
| 208 void perform() { | 208 void perform() { |
| 209 try { | 209 try { |
| 210 _safelyPerform(); | 210 _safelyPerform(); |
| 211 } on AnalysisException catch (exception, stackTrace) { | 211 } on AnalysisException catch (exception, stackTrace) { |
| 212 caughtException = new CaughtException(exception, stackTrace); | 212 caughtException = new CaughtException(exception, stackTrace); |
| 213 AnalysisEngine.instance.logger | 213 AnalysisEngine.instance.logger |
| 214 .logError("Task failed: ${description}", caughtException); | 214 .logError("Task failed: $description", caughtException); |
| 215 } | 215 } |
| 216 } | 216 } |
| 217 | 217 |
| 218 @override | 218 @override |
| 219 String toString() => description; | 219 String toString() => description; |
| 220 | 220 |
| 221 /** | 221 /** |
| 222 * Given a strongly connected component, find and return a list of | 222 * Given a strongly connected component, find and return a list of |
| 223 * [TargetedResult]s that describes a cyclic path within the cycle. Returns | 223 * [TargetedResult]s that describes a cyclic path within the cycle. Returns |
| 224 * null if no cyclic path is found. | 224 * null if no cyclic path is found. |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 /** | 736 /** |
| 737 * A work should be done, but without any special urgency. | 737 * A work should be done, but without any special urgency. |
| 738 */ | 738 */ |
| 739 NORMAL, | 739 NORMAL, |
| 740 | 740 |
| 741 /** | 741 /** |
| 742 * Nothing to do. | 742 * Nothing to do. |
| 743 */ | 743 */ |
| 744 NONE | 744 NONE |
| 745 } | 745 } |
| OLD | NEW |