| 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 25 matching lines...) Expand all Loading... |
| 36 PARSE_ERRORS, | 36 PARSE_ERRORS, |
| 37 SCAN_ERRORS | 37 SCAN_ERRORS |
| 38 ]; | 38 ]; |
| 39 | 39 |
| 40 /** | 40 /** |
| 41 * The list of errors that are reported for raw Dart [LibrarySpecificUnit]s. | 41 * The list of errors that are reported for raw Dart [LibrarySpecificUnit]s. |
| 42 */ | 42 */ |
| 43 static final List<ResultDescriptor> _UNIT_ERRORS = <ResultDescriptor>[ | 43 static final List<ResultDescriptor> _UNIT_ERRORS = <ResultDescriptor>[ |
| 44 HINTS, | 44 HINTS, |
| 45 LINTS, | 45 LINTS, |
| 46 INFER_STATIC_VARIABLE_TYPES_ERRORS, | |
| 47 LIBRARY_UNIT_ERRORS, | 46 LIBRARY_UNIT_ERRORS, |
| 48 PARTIALLY_RESOLVE_REFERENCES_ERRORS, | |
| 49 RESOLVE_FUNCTION_BODIES_ERRORS, | |
| 50 RESOLVE_TYPE_NAMES_ERRORS, | 47 RESOLVE_TYPE_NAMES_ERRORS, |
| 48 RESOLVE_UNIT_ERRORS, |
| 51 VARIABLE_REFERENCE_ERRORS, | 49 VARIABLE_REFERENCE_ERRORS, |
| 52 VERIFY_ERRORS | 50 VERIFY_ERRORS |
| 53 ]; | 51 ]; |
| 54 | 52 |
| 55 final InternalAnalysisContext context; | 53 final InternalAnalysisContext context; |
| 56 | 54 |
| 57 /** | 55 /** |
| 58 * The [TargetedResult]s that should be computed with priority. | 56 * The [TargetedResult]s that should be computed with priority. |
| 59 */ | 57 */ |
| 60 final LinkedHashSet<TargetedResult> priorityResultQueue = | 58 final LinkedHashSet<TargetedResult> priorityResultQueue = |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 } | 436 } |
| 439 } | 437 } |
| 440 | 438 |
| 441 bool _shouldErrorsBeComputed(Source source) => | 439 bool _shouldErrorsBeComputed(Source source) => |
| 442 context.shouldErrorsBeAnalyzed(source, null); | 440 context.shouldErrorsBeAnalyzed(source, null); |
| 443 | 441 |
| 444 static bool _isDartSource(AnalysisTarget target) { | 442 static bool _isDartSource(AnalysisTarget target) { |
| 445 return target is Source && AnalysisEngine.isDartFileName(target.fullName); | 443 return target is Source && AnalysisEngine.isDartFileName(target.fullName); |
| 446 } | 444 } |
| 447 } | 445 } |
| OLD | NEW |