| Index: pkg/analyzer_cli/lib/src/options.dart
|
| diff --git a/pkg/analyzer_cli/lib/src/options.dart b/pkg/analyzer_cli/lib/src/options.dart
|
| index 2ad8bc485bdf53d9f75f2f8b3518039c221f67aa..6a4c42601aab7fbca407893767365fc8b45002b6 100644
|
| --- a/pkg/analyzer_cli/lib/src/options.dart
|
| +++ b/pkg/analyzer_cli/lib/src/options.dart
|
| @@ -87,6 +87,10 @@ class CommandLineOptions {
|
| /// Whether to display version information
|
| final bool displayVersion;
|
|
|
| + /// A flag indicating whether access to field formal parameters should be
|
| + /// allowed in a constructor's initializer list.
|
| + final bool enableInitializingFormalAccess;
|
| +
|
| /// Whether to enable null-aware operators (DEP 9).
|
| final bool enableNullAwareOperators;
|
|
|
| @@ -181,6 +185,7 @@ class CommandLineOptions {
|
| analysisOptionsFile = args['options'],
|
| disableHints = args['no-hints'],
|
| displayVersion = args['version'],
|
| + enableInitializingFormalAccess = args['initializing-formal-access'],
|
| enableNullAwareOperators = args['enable-null-aware-operators'],
|
| enableStrictCallChecks = args['enable-strict-call-checks'],
|
| enableSuperMixins = args['supermixin'],
|
| @@ -470,6 +475,12 @@ class CommandLineOptions {
|
| defaultsTo: false,
|
| negatable: false,
|
| hide: true)
|
| + ..addFlag('initializing-formal-access',
|
| + help:
|
| + 'Enable support for allowing access to field formal parameters in a constructor\'s initializer list',
|
| + defaultsTo: false,
|
| + negatable: false,
|
| + hide: true)
|
| ..addFlag('supermixin',
|
| help: 'Relax restrictions on mixins (DEP 34).',
|
| defaultsTo: false,
|
|
|