Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: pkg/analyzer/lib/src/task/options.dart

Issue 1789633004: Option support for enableStrictCallChecks (#25983) (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/src/task/options_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 =
« no previous file with comments | « no previous file | pkg/analyzer/test/src/task/options_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698