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/error/error.dart'; |
9 import 'package:analyzer/src/context/cache.dart'; | 10 import 'package:analyzer/src/context/cache.dart'; |
10 import 'package:analyzer/src/generated/engine.dart' | 11 import 'package:analyzer/src/generated/engine.dart' |
11 show AnalysisEngine, AnalysisErrorInfo, CacheState, InternalAnalysisContext; | 12 show AnalysisEngine, AnalysisErrorInfo, CacheState, InternalAnalysisContext; |
12 import 'package:analyzer/src/generated/error.dart'; | |
13 import 'package:analyzer/src/generated/source.dart'; | 13 import 'package:analyzer/src/generated/source.dart'; |
14 import 'package:analyzer/src/generated/utilities_collection.dart'; | 14 import 'package:analyzer/src/generated/utilities_collection.dart'; |
15 import 'package:analyzer/src/task/dart.dart'; | 15 import 'package:analyzer/src/task/dart.dart'; |
16 import 'package:analyzer/src/task/html.dart'; | 16 import 'package:analyzer/src/task/html.dart'; |
17 import 'package:analyzer/task/dart.dart'; | 17 import 'package:analyzer/task/dart.dart'; |
18 import 'package:analyzer/task/model.dart'; | 18 import 'package:analyzer/task/model.dart'; |
19 | 19 |
20 /** | 20 /** |
21 * The manager for Dart specific analysis. | 21 * The manager for Dart specific analysis. |
22 */ | 22 */ |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 } | 491 } |
492 } | 492 } |
493 | 493 |
494 bool _shouldErrorsBeComputed(Source source) => | 494 bool _shouldErrorsBeComputed(Source source) => |
495 context.shouldErrorsBeAnalyzed(source); | 495 context.shouldErrorsBeAnalyzed(source); |
496 | 496 |
497 static bool _isDartSource(AnalysisTarget target) { | 497 static bool _isDartSource(AnalysisTarget target) { |
498 return target is Source && AnalysisEngine.isDartFileName(target.fullName); | 498 return target is Source && AnalysisEngine.isDartFileName(target.fullName); |
499 } | 499 } |
500 } | 500 } |
OLD | NEW |