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 static final List<ResultDescriptor> _SOURCE_ERRORS = <ResultDescriptor>[ | 34 static final List<ResultDescriptor> _SOURCE_ERRORS = <ResultDescriptor>[ |
35 BUILD_DIRECTIVES_ERRORS, | 35 BUILD_DIRECTIVES_ERRORS, |
36 BUILD_LIBRARY_ERRORS, | 36 BUILD_LIBRARY_ERRORS, |
37 PARSE_ERRORS, | 37 PARSE_ERRORS, |
38 SCAN_ERRORS | 38 SCAN_ERRORS |
39 ]; | 39 ]; |
40 | 40 |
41 /** | 41 /** |
42 * The list of errors that are reported for raw Dart [LibrarySpecificUnit]s. | 42 * The list of errors that are reported for raw Dart [LibrarySpecificUnit]s. |
43 */ | 43 */ |
44 static final List<ResultDescriptor> _UNIT_ERRORS = <ResultDescriptor>[ | 44 static final List<ResultDescriptor> _UNIT_ERRORS = <ResultDescriptor>[ |
Brian Wilkerson
2015/06/12 19:27:48
I don't like the fact that work manager has duplic
scheglov
2015/06/12 19:52:03
No changes for now.
But we now return DART_ERRORS
| |
45 BUILD_FUNCTION_TYPE_ALIASES_ERRORS, | 45 BUILD_FUNCTION_TYPE_ALIASES_ERRORS, |
46 CONSTRUCTORS_ERRORS, | |
46 HINTS, | 47 HINTS, |
47 RESOLVE_REFERENCES_ERRORS, | 48 RESOLVE_REFERENCES_ERRORS, |
48 RESOLVE_TYPE_NAMES_ERRORS, | 49 RESOLVE_TYPE_NAMES_ERRORS, |
50 VARIABLE_REFERENCE_ERRORS, | |
49 VERIFY_ERRORS | 51 VERIFY_ERRORS |
50 ]; | 52 ]; |
51 | 53 |
52 final InternalAnalysisContext context; | 54 final InternalAnalysisContext context; |
53 | 55 |
54 /** | 56 /** |
55 * The [TargetedResult]s that should be computed with priority. | 57 * The [TargetedResult]s that should be computed with priority. |
56 */ | 58 */ |
57 final LinkedHashSet<TargetedResult> priorityResultQueue = | 59 final LinkedHashSet<TargetedResult> priorityResultQueue = |
58 new LinkedHashSet<TargetedResult>(); | 60 new LinkedHashSet<TargetedResult>(); |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
438 } | 440 } |
439 } | 441 } |
440 | 442 |
441 bool _shouldErrorsBeComputed(Source source) => | 443 bool _shouldErrorsBeComputed(Source source) => |
442 context.shouldErrorsBeAnalyzed(source, null); | 444 context.shouldErrorsBeAnalyzed(source, null); |
443 | 445 |
444 static bool _isDartSource(AnalysisTarget target) { | 446 static bool _isDartSource(AnalysisTarget target) { |
445 return target is Source && AnalysisEngine.isDartFileName(target.fullName); | 447 return target is Source && AnalysisEngine.isDartFileName(target.fullName); |
446 } | 448 } |
447 } | 449 } |
OLD | NEW |