Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: pkg/analyzer/lib/src/task/manager.dart

Issue 2328043002: Move exception support to its own library (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/task/html.dart ('k') | pkg/analyzer/lib/src/task/yaml.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/html.dart ('k') | pkg/analyzer/lib/src/task/yaml.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698