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

Side by Side Diff: pkg/analyzer/lib/src/command_line/arguments.dart

Issue 2713723003: Remove and hide analyzer cli flags. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer_cli/README.md » ('j') | pkg/analyzer_cli/lib/src/options.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.src.command_line.arguments; 5 library analyzer.src.command_line.arguments;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/file_system/file_system.dart'; 9 import 'package:analyzer/file_system/file_system.dart';
10 import 'package:analyzer/src/context/builder.dart'; 10 import 'package:analyzer/src/context/builder.dart';
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Hidden flags and options. 153 // Hidden flags and options.
154 // 154 //
155 parser.addOption(defineVariableOption, 155 parser.addOption(defineVariableOption,
156 abbr: 'D', 156 abbr: 'D',
157 allowMultiple: true, 157 allowMultiple: true,
158 help: 'Define environment variables. For example, "-Dfoo=bar" defines an ' 158 help: 'Define environment variables. For example, "-Dfoo=bar" defines an '
159 'environment variable named "foo" whose value is "bar".', 159 'environment variable named "foo" whose value is "bar".',
160 hide: hide); 160 hide: hide);
161 parser.addOption(packagesOption, 161 parser.addOption(packagesOption,
162 help: 'The path to the package resolution configuration file, which ' 162 help: 'The path to the package resolution configuration file, which '
163 'supplies a mapping of package names to paths. This option cannot be ' 163 'supplies a mapping of package names\nto paths. This option cannot be '
164 'used with --package-root.', 164 'used with --package-root.',
165 hide: ddc); 165 hide: ddc);
166 parser.addOption(sdkSummaryPathOption, 166 parser.addOption(sdkSummaryPathOption,
167 help: 'The path to the Dart SDK summary file.', hide: hide); 167 help: 'The path to the Dart SDK summary file.', hide: hide);
168 parser.addFlag(enableStrictCallChecksFlag, 168 parser.addFlag(enableStrictCallChecksFlag,
169 help: 'Fix issue 21938.', 169 help: 'Fix issue 21938.',
170 defaultsTo: false, 170 defaultsTo: false,
171 negatable: false, 171 negatable: false,
172 hide: hide); 172 hide: hide);
173 parser.addFlag(enableInitializingFormalAccessFlag, 173 parser.addFlag(enableInitializingFormalAccessFlag,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 .replaceAll('\r\n', '\n') 302 .replaceAll('\r\n', '\n')
303 .replaceAll('\r', '\n') 303 .replaceAll('\r', '\n')
304 .split('\n') 304 .split('\n')
305 .where((String line) => line.isNotEmpty)); 305 .where((String line) => line.isNotEmpty));
306 } on FileSystemException catch (e) { 306 } on FileSystemException catch (e) {
307 throw new Exception('Failed to read file specified by $lastArg : $e'); 307 throw new Exception('Failed to read file specified by $lastArg : $e');
308 } 308 }
309 } 309 }
310 return args; 310 return args;
311 } 311 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer_cli/README.md » ('j') | pkg/analyzer_cli/lib/src/options.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698