| 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.manager; | 5 library analyzer.src.task.manager; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/src/generated/java_engine.dart'; | 9 import 'package:analyzer/exception/exception.dart'; |
| 10 import 'package:analyzer/task/model.dart'; | 10 import 'package:analyzer/task/model.dart'; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * An object that manages the information about the tasks that have been | 13 * An object that manages the information about the tasks that have been |
| 14 * defined. | 14 * defined. |
| 15 */ | 15 */ |
| 16 class TaskManager { | 16 class TaskManager { |
| 17 /** | 17 /** |
| 18 * A table mapping [ResultDescriptor]s to a list of [TaskDescriptor]s | 18 * A table mapping [ResultDescriptor]s to a list of [TaskDescriptor]s |
| 19 * for the tasks that can be used to compute the result. | 19 * for the tasks that can be used to compute the result. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 TaskSuitability suitability = descriptor.suitabilityFor(target); | 114 TaskSuitability suitability = descriptor.suitabilityFor(target); |
| 115 if (suitability == TaskSuitability.HIGHEST) { | 115 if (suitability == TaskSuitability.HIGHEST) { |
| 116 return descriptor; | 116 return descriptor; |
| 117 } else if (best == null && suitability == TaskSuitability.LOWEST) { | 117 } else if (best == null && suitability == TaskSuitability.LOWEST) { |
| 118 best = descriptor; | 118 best = descriptor; |
| 119 } | 119 } |
| 120 } | 120 } |
| 121 return best; | 121 return best; |
| 122 } | 122 } |
| 123 } | 123 } |
| OLD | NEW |