| 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' as io; | 9 import 'dart:io' as io; |
| 10 | 10 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 if (!_equalMaps( | 277 if (!_equalMaps( |
| 278 options.definedVariables, _previousOptions.definedVariables)) { | 278 options.definedVariables, _previousOptions.definedVariables)) { |
| 279 return false; | 279 return false; |
| 280 } | 280 } |
| 281 if (options.log != _previousOptions.log) { | 281 if (options.log != _previousOptions.log) { |
| 282 return false; | 282 return false; |
| 283 } | 283 } |
| 284 if (options.disableHints != _previousOptions.disableHints) { | 284 if (options.disableHints != _previousOptions.disableHints) { |
| 285 return false; | 285 return false; |
| 286 } | 286 } |
| 287 if (options.enableInitializingFormalAccess != |
| 288 _previousOptions.enableInitializingFormalAccess) { |
| 289 return false; |
| 290 } |
| 287 if (options.enableStrictCallChecks != | 291 if (options.enableStrictCallChecks != |
| 288 _previousOptions.enableStrictCallChecks) { | 292 _previousOptions.enableStrictCallChecks) { |
| 289 return false; | 293 return false; |
| 290 } | 294 } |
| 291 if (options.showPackageWarnings != _previousOptions.showPackageWarnings) { | 295 if (options.showPackageWarnings != _previousOptions.showPackageWarnings) { |
| 292 return false; | 296 return false; |
| 293 } | 297 } |
| 294 if (options.showPackageWarningsPrefix != | 298 if (options.showPackageWarningsPrefix != |
| 295 _previousOptions.showPackageWarningsPrefix) { | 299 _previousOptions.showPackageWarningsPrefix) { |
| 296 return false; | 300 return false; |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 sdk = dartSdk; | 644 sdk = dartSdk; |
| 641 } | 645 } |
| 642 } | 646 } |
| 643 } | 647 } |
| 644 | 648 |
| 645 static AnalysisOptionsImpl createAnalysisOptionsForCommandLineOptions( | 649 static AnalysisOptionsImpl createAnalysisOptionsForCommandLineOptions( |
| 646 CommandLineOptions options) { | 650 CommandLineOptions options) { |
| 647 AnalysisOptionsImpl contextOptions = new AnalysisOptionsImpl(); | 651 AnalysisOptionsImpl contextOptions = new AnalysisOptionsImpl(); |
| 648 contextOptions.trackCacheDependencies = false; | 652 contextOptions.trackCacheDependencies = false; |
| 649 contextOptions.hint = !options.disableHints; | 653 contextOptions.hint = !options.disableHints; |
| 654 contextOptions.enableInitializingFormalAccess = |
| 655 options.enableInitializingFormalAccess; |
| 650 contextOptions.enableStrictCallChecks = options.enableStrictCallChecks; | 656 contextOptions.enableStrictCallChecks = options.enableStrictCallChecks; |
| 651 contextOptions.enableSuperMixins = options.enableSuperMixins; | 657 contextOptions.enableSuperMixins = options.enableSuperMixins; |
| 652 contextOptions.generateImplicitErrors = options.showPackageWarnings; | 658 contextOptions.generateImplicitErrors = options.showPackageWarnings; |
| 653 contextOptions.generateSdkErrors = options.showSdkWarnings; | 659 contextOptions.generateSdkErrors = options.showSdkWarnings; |
| 654 contextOptions.lint = options.lints; | 660 contextOptions.lint = options.lints; |
| 655 contextOptions.strongMode = options.strongMode; | 661 contextOptions.strongMode = options.strongMode; |
| 656 contextOptions.implicitCasts = options.implicitCasts; | 662 contextOptions.implicitCasts = options.implicitCasts; |
| 657 contextOptions.implicitDynamic = options.implicitDynamic; | 663 contextOptions.implicitDynamic = options.implicitDynamic; |
| 658 return contextOptions; | 664 return contextOptions; |
| 659 } | 665 } |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 for (var package in packages) { | 847 for (var package in packages) { |
| 842 var packageName = path.basename(package.path); | 848 var packageName = path.basename(package.path); |
| 843 var realPath = package.resolveSymbolicLinksSync(); | 849 var realPath = package.resolveSymbolicLinksSync(); |
| 844 result[packageName] = [ | 850 result[packageName] = [ |
| 845 PhysicalResourceProvider.INSTANCE.getFolder(realPath) | 851 PhysicalResourceProvider.INSTANCE.getFolder(realPath) |
| 846 ]; | 852 ]; |
| 847 } | 853 } |
| 848 return result; | 854 return result; |
| 849 } | 855 } |
| 850 } | 856 } |
| OLD | NEW |