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.dart_work_manager; | 5 library analyzer.src.task.dart_work_manager; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/src/context/cache.dart'; | 9 import 'package:analyzer/src/context/cache.dart'; |
10 import 'package:analyzer/src/generated/engine.dart' | 10 import 'package:analyzer/src/generated/engine.dart' |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 /** | 35 /** |
36 * The list of errors that are reported for raw Dart [LibrarySpecificUnit]s. | 36 * The list of errors that are reported for raw Dart [LibrarySpecificUnit]s. |
37 */ | 37 */ |
38 static final List<ResultDescriptor<List<AnalysisError>>> _UNIT_ERRORS = | 38 static final List<ResultDescriptor<List<AnalysisError>>> _UNIT_ERRORS = |
39 <ResultDescriptor<List<AnalysisError>>>[ | 39 <ResultDescriptor<List<AnalysisError>>>[ |
40 HINTS, | 40 HINTS, |
41 LINTS, | 41 LINTS, |
42 LIBRARY_UNIT_ERRORS, | 42 LIBRARY_UNIT_ERRORS, |
43 RESOLVE_TYPE_NAMES_ERRORS, | 43 RESOLVE_TYPE_NAMES_ERRORS, |
| 44 RESOLVE_TYPE_BOUNDS_ERRORS, |
44 RESOLVE_UNIT_ERRORS, | 45 RESOLVE_UNIT_ERRORS, |
45 STRONG_MODE_ERRORS, | 46 STRONG_MODE_ERRORS, |
46 VARIABLE_REFERENCE_ERRORS, | 47 VARIABLE_REFERENCE_ERRORS, |
47 VERIFY_ERRORS | 48 VERIFY_ERRORS |
48 ]; | 49 ]; |
49 | 50 |
50 final InternalAnalysisContext context; | 51 final InternalAnalysisContext context; |
51 | 52 |
52 /** | 53 /** |
53 * The [TargetedResult]s that should be computed with priority. | 54 * The [TargetedResult]s that should be computed with priority. |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 } | 470 } |
470 } | 471 } |
471 | 472 |
472 bool _shouldErrorsBeComputed(Source source) => | 473 bool _shouldErrorsBeComputed(Source source) => |
473 context.shouldErrorsBeAnalyzed(source); | 474 context.shouldErrorsBeAnalyzed(source); |
474 | 475 |
475 static bool _isDartSource(AnalysisTarget target) { | 476 static bool _isDartSource(AnalysisTarget target) { |
476 return target is Source && AnalysisEngine.isDartFileName(target.fullName); | 477 return target is Source && AnalysisEngine.isDartFileName(target.fullName); |
477 } | 478 } |
478 } | 479 } |
OLD | NEW |