| 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 957910a1e368c306f99b20b998e77954753930ec..f93d5f6e62ffe6cc4769df893ccf81d87f3f5bcd 100644
|
| --- a/pkg/analyzer_cli/lib/src/options.dart
|
| +++ b/pkg/analyzer_cli/lib/src/options.dart
|
| @@ -120,7 +120,7 @@ class CommandLineOptions {
|
| final bool showSdkWarnings;
|
|
|
| /// The source files to analyze
|
| - final List<String> sourceFiles;
|
| + List<String> _sourceFiles;
|
|
|
| /// Whether to treat warnings as fatal
|
| final bool warningsAreFatal;
|
| @@ -173,7 +173,7 @@ class CommandLineOptions {
|
| args['x-package-warnings-prefix'] != null,
|
| showPackageWarningsPrefix = args['x-package-warnings-prefix'],
|
| showSdkWarnings = args['sdk-warnings'],
|
| - sourceFiles = args.rest,
|
| + _sourceFiles = args.rest,
|
| warningsAreFatal = args['fatal-warnings'],
|
| strongMode = args['strong'],
|
| implicitCasts = !args['no-implicit-casts'],
|
| @@ -259,6 +259,14 @@ class CommandLineOptions {
|
| return options;
|
| }
|
|
|
| + /// The source files to analyze
|
| + List<String> get sourceFiles => _sourceFiles;
|
| +
|
| + /// Replace the sourceFiles parsed from the command line.
|
| + void rewriteSourceFiles(List<String> newSourceFiles) {
|
| + _sourceFiles = newSourceFiles;
|
| + }
|
| +
|
| static String _getVersion() {
|
| try {
|
| // This is relative to bin/snapshot, so ../..
|
|
|