| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 if (options.log != _previousOptions.log) { | 312 if (options.log != _previousOptions.log) { |
| 313 return false; | 313 return false; |
| 314 } | 314 } |
| 315 if (options.disableHints != _previousOptions.disableHints) { | 315 if (options.disableHints != _previousOptions.disableHints) { |
| 316 return false; | 316 return false; |
| 317 } | 317 } |
| 318 if (options.enableStrictCallChecks != | 318 if (options.enableStrictCallChecks != |
| 319 _previousOptions.enableStrictCallChecks) { | 319 _previousOptions.enableStrictCallChecks) { |
| 320 return false; | 320 return false; |
| 321 } | 321 } |
| 322 if (options.enableAssertInitializer != |
| 323 _previousOptions.enableAssertInitializer) { |
| 324 return false; |
| 325 } |
| 322 if (options.showPackageWarnings != _previousOptions.showPackageWarnings) { | 326 if (options.showPackageWarnings != _previousOptions.showPackageWarnings) { |
| 323 return false; | 327 return false; |
| 324 } | 328 } |
| 325 if (options.showPackageWarningsPrefix != | 329 if (options.showPackageWarningsPrefix != |
| 326 _previousOptions.showPackageWarningsPrefix) { | 330 _previousOptions.showPackageWarningsPrefix) { |
| 327 return false; | 331 return false; |
| 328 } | 332 } |
| 329 if (options.showSdkWarnings != _previousOptions.showSdkWarnings) { | 333 if (options.showSdkWarnings != _previousOptions.showSdkWarnings) { |
| 330 return false; | 334 return false; |
| 331 } | 335 } |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 resourceProvider, null, null, | 761 resourceProvider, null, null, |
| 758 options: options.contextBuilderOptions) | 762 options: options.contextBuilderOptions) |
| 759 .getAnalysisOptions(contextRoot, | 763 .getAnalysisOptions(contextRoot, |
| 760 verbosePrint: options.verbose ? verbosePrint : null); | 764 verbosePrint: options.verbose ? verbosePrint : null); |
| 761 | 765 |
| 762 contextOptions.trackCacheDependencies = false; | 766 contextOptions.trackCacheDependencies = false; |
| 763 contextOptions.disableCacheFlushing = options.disableCacheFlushing; | 767 contextOptions.disableCacheFlushing = options.disableCacheFlushing; |
| 764 contextOptions.hint = !options.disableHints; | 768 contextOptions.hint = !options.disableHints; |
| 765 contextOptions.generateImplicitErrors = options.showPackageWarnings; | 769 contextOptions.generateImplicitErrors = options.showPackageWarnings; |
| 766 contextOptions.generateSdkErrors = options.showSdkWarnings; | 770 contextOptions.generateSdkErrors = options.showSdkWarnings; |
| 771 contextOptions.enableAssertInitializer = options.enableAssertInitializer; |
| 767 | 772 |
| 768 return contextOptions; | 773 return contextOptions; |
| 769 } | 774 } |
| 770 | 775 |
| 771 static void setAnalysisContextOptions( | 776 static void setAnalysisContextOptions( |
| 772 file_system.ResourceProvider resourceProvider, | 777 file_system.ResourceProvider resourceProvider, |
| 773 AnalysisContext context, | 778 AnalysisContext context, |
| 774 CommandLineOptions options, | 779 CommandLineOptions options, |
| 775 void configureContextOptions(AnalysisOptionsImpl contextOptions)) { | 780 void configureContextOptions(AnalysisOptionsImpl contextOptions)) { |
| 776 AnalysisOptionsImpl analysisOptions = | 781 AnalysisOptionsImpl analysisOptions = |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 for (var package in packages) { | 917 for (var package in packages) { |
| 913 var packageName = path.basename(package.path); | 918 var packageName = path.basename(package.path); |
| 914 var realPath = package.resolveSymbolicLinksSync(); | 919 var realPath = package.resolveSymbolicLinksSync(); |
| 915 result[packageName] = [ | 920 result[packageName] = [ |
| 916 PhysicalResourceProvider.INSTANCE.getFolder(realPath) | 921 PhysicalResourceProvider.INSTANCE.getFolder(realPath) |
| 917 ]; | 922 ]; |
| 918 } | 923 } |
| 919 return result; | 924 return result; |
| 920 } | 925 } |
| 921 } | 926 } |
| OLD | NEW |