mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
Add the new language option in analysis_options.yaml files for enabling the preview-dart-2 flag
Change-Id: I32c090ad1d7696dd18a7db7ee470ea1af5f1ec91 Reviewed-on: https://dart-review.googlesource.com/37921 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Jaime Wren <jwren@google.com>
This commit is contained in:
parent
ca0b707d2a
commit
1f4c74dabb
|
@ -48,6 +48,7 @@ class AnalyzerOptions {
|
|||
'enableInitializingFormalAccess';
|
||||
static const String enableStrictCallChecks = 'enableStrictCallChecks';
|
||||
static const String enableSuperMixins = 'enableSuperMixins';
|
||||
static const String enablePreviewDart2 = 'enablePreviewDart2';
|
||||
|
||||
static const String errors = 'errors';
|
||||
static const String exclude = 'exclude';
|
||||
|
@ -88,7 +89,8 @@ class AnalyzerOptions {
|
|||
enableAsync,
|
||||
enableGenericMethods,
|
||||
enableStrictCallChecks,
|
||||
enableSuperMixins
|
||||
enableSuperMixins,
|
||||
enablePreviewDart2
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -578,6 +580,8 @@ class _OptionsProcessor {
|
|||
options.enableStrictCallChecks = boolValue;
|
||||
} else if (feature == AnalyzerOptions.enableSuperMixins) {
|
||||
options.enableSuperMixins = boolValue;
|
||||
} else if (feature == AnalyzerOptions.enablePreviewDart2) {
|
||||
options.previewDart2 = boolValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue