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

Side by Side Diff: pkg/front_end/lib/src/fasta/compiler_command_line.dart

Issue 2751093004: [fasta] Flip source flag and include source by default (Closed)
Patch Set: Created 3 years, 9 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/front_end/lib/src/fasta/source/source_loader.dart » ('j') | no next file with comments »
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 fasta.compiler_command_line; 5 library fasta.compiler_command_line;
6 6
7 import 'dart:io' show exit; 7 import 'dart:io' show exit;
8 8
9 import 'command_line.dart' show CommandLine, argumentError; 9 import 'command_line.dart' show CommandLine, argumentError;
10 10
(...skipping 14 matching lines...) Expand all
25 CompilerCommandLine(String programName, List<String> arguments) 25 CompilerCommandLine(String programName, List<String> arguments)
26 : programName = programName, 26 : programName = programName,
27 super(arguments, 27 super(arguments,
28 specification: optionSpecification, 28 specification: optionSpecification,
29 usage: computeUsage(programName, false)); 29 usage: computeUsage(programName, false));
30 30
31 bool get verify => options.containsKey("--verify"); 31 bool get verify => options.containsKey("--verify");
32 32
33 bool get dumpIr => options.containsKey("--dump-ir"); 33 bool get dumpIr => options.containsKey("--dump-ir");
34 34
35 bool get includeSource => options.containsKey("--include-source"); 35 bool get excludeSource => options.containsKey("--exclude-source");
36 36
37 bool get help { 37 bool get help {
38 return options.containsKey("--help") || 38 return options.containsKey("--help") ||
39 options.containsKey("-h") || 39 options.containsKey("-h") ||
40 options.containsKey("/h") || 40 options.containsKey("/h") ||
41 options.containsKey("/?"); 41 options.containsKey("/?");
42 } 42 }
43 43
44 void validate() { 44 void validate() {
45 if (help) { 45 if (help) {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 Read the SDK platform from <file>, which should be in Dill/Kernel IR format 162 Read the SDK platform from <file>, which should be in Dill/Kernel IR format
163 and contain the Dart SDK. 163 and contain the Dart SDK.
164 164
165 --verify 165 --verify
166 Check that the generated output is free of various problems. This is mostly 166 Check that the generated output is free of various problems. This is mostly
167 useful for developers of this compiler or Kernel transformations. 167 useful for developers of this compiler or Kernel transformations.
168 168
169 --dump-ir 169 --dump-ir
170 Print compiled libraries in Kernel source notation. 170 Print compiled libraries in Kernel source notation.
171 171
172 --include-source 172 --exclude-source
173 Include source code in the dill file. Used for debugging. 173 Do not include source code in the dill file.
174 174
175 --compile-sdk=<patched_sdk> 175 --compile-sdk=<patched_sdk>
176 Compile the SDK from scratch instead of reading it from 'platform.dill'. 176 Compile the SDK from scratch instead of reading it from 'platform.dill'.
177 177
178 --fatal=errors 178 --fatal=errors
179 --fatal=warnings 179 --fatal=warnings
180 --fatal=nits 180 --fatal=nits
181 Makes messages of the given kinds fatal, that is, immediately stop the 181 Makes messages of the given kinds fatal, that is, immediately stop the
182 compiler with a non-zero exit-code. In --verbose mode, also display an 182 compiler with a non-zero exit-code. In --verbose mode, also display an
183 internal stack trace from the compiler. Multiple kinds can be separated by 183 internal stack trace from the compiler. Multiple kinds can be separated by
184 commas, for example, --fatal=errors,warnings. 184 commas, for example, --fatal=errors,warnings.
185 """; 185 """;
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/source/source_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698