Chromium Code Reviews| Index: pkg/analyzer/lib/src/task/options.dart |
| diff --git a/pkg/analyzer/lib/src/task/options.dart b/pkg/analyzer/lib/src/task/options.dart |
| index e5989105aef0c14db2e1d3ae09b87c9ca1e96c2b..f46e0699e5e67ae5f8e158d4618c332c989bdc02 100644 |
| --- a/pkg/analyzer/lib/src/task/options.dart |
| +++ b/pkg/analyzer/lib/src/task/options.dart |
| @@ -46,6 +46,7 @@ class AnalyzerOptions { |
| static const String analyzer = 'analyzer'; |
| static const String enableAsync = 'enableAsync'; |
| static const String enableGenericMethods = 'enableGenericMethods'; |
| + static const String enableStrictCallChecks = 'enableStrictCallChecks'; |
| static const String enableSuperMixins = 'enableSuperMixins'; |
| static const String enableConditionalDirectives = |
| "enableConditionalDirectives"; |
| @@ -80,9 +81,10 @@ class AnalyzerOptions { |
| /// Supported `analyzer` language configuration options. |
| static const List<String> languageOptions = const [ |
| enableAsync, |
| - enableGenericMethods, |
| - enableSuperMixins, |
| enableConditionalDirectives, |
| + enableGenericMethods, |
| + enableStrictCallChecks, |
| + enableSuperMixins |
| ]; |
| } |
| @@ -477,6 +479,14 @@ class _OptionsProcessor { |
| context.analysisOptions = options; |
| } |
| } |
| + if (feature == AnalyzerOptions.enableStrictCallChecks) { |
| + if (isTrue(value)) { |
| + AnalysisOptionsImpl options = |
| + new AnalysisOptionsImpl.from(context.analysisOptions); |
|
Brian Wilkerson
2016/03/11 22:45:02
format?
|
| + options.enableStrictCallChecks = true; |
| + context.analysisOptions = options; |
| + } |
| + } |
| if (feature == AnalyzerOptions.enableSuperMixins) { |
| if (isTrue(value)) { |
| AnalysisOptionsImpl options = |