| 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 |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 CommandLineOptions options) { | 641 CommandLineOptions options) { |
| 642 AnalysisOptionsImpl contextOptions = new AnalysisOptionsImpl(); | 642 AnalysisOptionsImpl contextOptions = new AnalysisOptionsImpl(); |
| 643 contextOptions.trackCacheDependencies = false; | 643 contextOptions.trackCacheDependencies = false; |
| 644 contextOptions.hint = !options.disableHints; | 644 contextOptions.hint = !options.disableHints; |
| 645 contextOptions.enableStrictCallChecks = options.enableStrictCallChecks; | 645 contextOptions.enableStrictCallChecks = options.enableStrictCallChecks; |
| 646 contextOptions.enableSuperMixins = options.enableSuperMixins; | 646 contextOptions.enableSuperMixins = options.enableSuperMixins; |
| 647 contextOptions.generateImplicitErrors = options.showPackageWarnings; | 647 contextOptions.generateImplicitErrors = options.showPackageWarnings; |
| 648 contextOptions.generateSdkErrors = options.showSdkWarnings; | 648 contextOptions.generateSdkErrors = options.showSdkWarnings; |
| 649 contextOptions.lint = options.lints; | 649 contextOptions.lint = options.lints; |
| 650 contextOptions.strongMode = options.strongMode; | 650 contextOptions.strongMode = options.strongMode; |
| 651 contextOptions.implicitCasts = options.implicitCasts; |
| 652 contextOptions.implicitDynamic = options.implicitDynamic; |
| 651 return contextOptions; | 653 return contextOptions; |
| 652 } | 654 } |
| 653 | 655 |
| 654 static void setAnalysisContextOptions( | 656 static void setAnalysisContextOptions( |
| 655 AnalysisContext context, | 657 AnalysisContext context, |
| 656 CommandLineOptions options, | 658 CommandLineOptions options, |
| 657 void configureContextOptions(AnalysisOptionsImpl contextOptions)) { | 659 void configureContextOptions(AnalysisOptionsImpl contextOptions)) { |
| 658 Map<String, String> definedVariables = options.definedVariables; | 660 Map<String, String> definedVariables = options.definedVariables; |
| 659 if (definedVariables.isNotEmpty) { | 661 if (definedVariables.isNotEmpty) { |
| 660 DeclaredVariables declaredVariables = context.declaredVariables; | 662 DeclaredVariables declaredVariables = context.declaredVariables; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 for (var package in packages) { | 834 for (var package in packages) { |
| 833 var packageName = path.basename(package.path); | 835 var packageName = path.basename(package.path); |
| 834 var realPath = package.resolveSymbolicLinksSync(); | 836 var realPath = package.resolveSymbolicLinksSync(); |
| 835 result[packageName] = [ | 837 result[packageName] = [ |
| 836 PhysicalResourceProvider.INSTANCE.getFolder(realPath) | 838 PhysicalResourceProvider.INSTANCE.getFolder(realPath) |
| 837 ]; | 839 ]; |
| 838 } | 840 } |
| 839 return result; | 841 return result; |
| 840 } | 842 } |
| 841 } | 843 } |
| OLD | NEW |