| Index: pkg/analyzer/lib/options.dart
|
| diff --git a/pkg/analyzer/lib/options.dart b/pkg/analyzer/lib/options.dart
|
| index 37e1b8adbb70bcf8a3593d93955f8d1aa2b3e233..1f7543e1c1c202e623d30935326eabf2717b8309 100644
|
| --- a/pkg/analyzer/lib/options.dart
|
| +++ b/pkg/analyzer/lib/options.dart
|
| @@ -27,6 +27,12 @@ class CommandLineOptions {
|
| final bool displayVersion;
|
|
|
| /**
|
| + * Whether to strictly follow the specification when generating warnings on
|
| + * "call" methods (fixes dartbug.com/21938).
|
| + */
|
| + final bool enableStrictCallChecks;
|
| +
|
| + /**
|
| * Whether to treat type mismatches found during constant evaluation as
|
| * errors.
|
| */
|
| @@ -80,6 +86,7 @@ class CommandLineOptions {
|
| this.definedVariables = definedVariables,
|
| disableHints = args['no-hints'],
|
| displayVersion = args['version'],
|
| + enableStrictCallChecks = args['enable-strict-call-checks'],
|
| enableTypeChecks = args['enable_type_checks'],
|
| ignoreUnrecognizedFlags = args['ignore-unrecognized-flags'],
|
| log = args['log'],
|
| @@ -206,6 +213,11 @@ class CommandLineOptions {
|
| defaultsTo: false,
|
| negatable: false,
|
| hide: true)
|
| + ..addFlag('enable-strict-call-checks',
|
| + help: 'Fix issue 21938',
|
| + defaultsTo: false,
|
| + negatable: false,
|
| + hide: true)
|
| ..addFlag('log',
|
| help: 'Log additional messages and exceptions',
|
| defaultsTo: false,
|
|
|