| 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 bool needErrors = _shouldErrorsBeComputed(librarySource); | 467 bool needErrors = _shouldErrorsBeComputed(librarySource); |
| 468 if (needErrors) { | 468 if (needErrors) { |
| 469 addPriorityResult(librarySource, LIBRARY_ERRORS_READY); | 469 addPriorityResult(librarySource, LIBRARY_ERRORS_READY); |
| 470 } else { | 470 } else { |
| 471 var target = new LibrarySpecificUnit(librarySource, librarySource); | 471 var target = new LibrarySpecificUnit(librarySource, librarySource); |
| 472 addPriorityResult(target, RESOLVED_UNIT); | 472 addPriorityResult(target, RESOLVED_UNIT); |
| 473 } | 473 } |
| 474 } | 474 } |
| 475 | 475 |
| 476 bool _shouldErrorsBeComputed(Source source) => | 476 bool _shouldErrorsBeComputed(Source source) => |
| 477 context.shouldErrorsBeAnalyzed(source, null); | 477 context.shouldErrorsBeAnalyzed(source); |
| 478 | 478 |
| 479 static bool _isDartSource(AnalysisTarget target) { | 479 static bool _isDartSource(AnalysisTarget target) { |
| 480 return target is Source && AnalysisEngine.isDartFileName(target.fullName); | 480 return target is Source && AnalysisEngine.isDartFileName(target.fullName); |
| 481 } | 481 } |
| 482 } | 482 } |
| OLD | NEW |