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_cli.src.driver; | 5 library analyzer_cli.src.driver; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:io'; | 9 import 'dart:io'; |
10 | 10 |
11 import 'package:analyzer/file_system/file_system.dart' as fileSystem; | 11 import 'package:analyzer/file_system/file_system.dart' as fileSystem; |
12 import 'package:analyzer/file_system/physical_file_system.dart'; | 12 import 'package:analyzer/file_system/physical_file_system.dart'; |
13 import 'package:analyzer/plugin/options.dart'; | 13 import 'package:analyzer/plugin/options.dart'; |
| 14 import 'package:analyzer/plugin/resolver_provider.dart'; |
14 import 'package:analyzer/source/analysis_options_provider.dart'; | 15 import 'package:analyzer/source/analysis_options_provider.dart'; |
15 import 'package:analyzer/source/embedder.dart'; | 16 import 'package:analyzer/source/embedder.dart'; |
16 import 'package:analyzer/source/package_map_provider.dart'; | 17 import 'package:analyzer/source/package_map_provider.dart'; |
17 import 'package:analyzer/source/package_map_resolver.dart'; | 18 import 'package:analyzer/source/package_map_resolver.dart'; |
18 import 'package:analyzer/source/pub_package_map_provider.dart'; | 19 import 'package:analyzer/source/pub_package_map_provider.dart'; |
19 import 'package:analyzer/source/sdk_ext.dart'; | 20 import 'package:analyzer/source/sdk_ext.dart'; |
20 import 'package:analyzer/src/generated/constant.dart'; | 21 import 'package:analyzer/src/generated/constant.dart'; |
21 import 'package:analyzer/src/generated/engine.dart'; | 22 import 'package:analyzer/src/generated/engine.dart'; |
22 import 'package:analyzer/src/generated/error.dart'; | 23 import 'package:analyzer/src/generated/error.dart'; |
23 import 'package:analyzer/src/generated/interner.dart'; | 24 import 'package:analyzer/src/generated/interner.dart'; |
24 import 'package:analyzer/src/generated/java_engine.dart'; | 25 import 'package:analyzer/src/generated/java_engine.dart'; |
25 import 'package:analyzer/src/generated/java_io.dart'; | 26 import 'package:analyzer/src/generated/java_io.dart'; |
26 import 'package:analyzer/src/generated/sdk_io.dart'; | 27 import 'package:analyzer/src/generated/sdk_io.dart'; |
27 import 'package:analyzer/src/generated/source.dart'; | 28 import 'package:analyzer/src/generated/source.dart'; |
28 import 'package:analyzer/src/generated/source_io.dart'; | 29 import 'package:analyzer/src/generated/source_io.dart'; |
29 import 'package:analyzer/src/generated/utilities_general.dart' | 30 import 'package:analyzer/src/generated/utilities_general.dart' |
30 show PerformanceTag; | 31 show PerformanceTag; |
31 import 'package:analyzer/src/services/lint.dart'; | 32 import 'package:analyzer/src/services/lint.dart'; |
32 import 'package:analyzer/src/task/options.dart'; | 33 import 'package:analyzer/src/task/options.dart'; |
33 import 'package:analyzer_cli/plugin/analysis/resolver_provider.dart'; | |
34 import 'package:analyzer_cli/src/analyzer_impl.dart'; | 34 import 'package:analyzer_cli/src/analyzer_impl.dart'; |
35 import 'package:analyzer_cli/src/options.dart'; | 35 import 'package:analyzer_cli/src/options.dart'; |
36 import 'package:analyzer_cli/src/perf_report.dart'; | 36 import 'package:analyzer_cli/src/perf_report.dart'; |
37 import 'package:analyzer_cli/starter.dart'; | 37 import 'package:analyzer_cli/starter.dart'; |
38 import 'package:linter/src/plugin/linter_plugin.dart'; | 38 import 'package:linter/src/plugin/linter_plugin.dart'; |
39 import 'package:package_config/discovery.dart' as pkgDiscovery; | 39 import 'package:package_config/discovery.dart' as pkgDiscovery; |
40 import 'package:package_config/packages.dart' show Packages; | 40 import 'package:package_config/packages.dart' show Packages; |
41 import 'package:package_config/packages_file.dart' as pkgfile show parse; | 41 import 'package:package_config/packages_file.dart' as pkgfile show parse; |
42 import 'package:package_config/src/packages_impl.dart' show MapPackages; | 42 import 'package:package_config/src/packages_impl.dart' show MapPackages; |
43 import 'package:path/path.dart' as path; | 43 import 'package:path/path.dart' as path; |
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 for (var package in packages) { | 690 for (var package in packages) { |
691 var packageName = path.basename(package.path); | 691 var packageName = path.basename(package.path); |
692 var realPath = package.resolveSymbolicLinksSync(); | 692 var realPath = package.resolveSymbolicLinksSync(); |
693 result[packageName] = [ | 693 result[packageName] = [ |
694 PhysicalResourceProvider.INSTANCE.getFolder(realPath) | 694 PhysicalResourceProvider.INSTANCE.getFolder(realPath) |
695 ]; | 695 ]; |
696 } | 696 } |
697 return result; | 697 return result; |
698 } | 698 } |
699 } | 699 } |
OLD | NEW |