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

Side by Side Diff: lib/compiler/implementation/dart2js.dart

Issue 10909015: Unify the name of the flag and make it settable from command line. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « lib/compiler/implementation/apiimpl.dart ('k') | tests/compiler/dart2js/unparser_test.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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('dart2js'); 5 #library('dart2js');
6 6
7 #import('dart:io'); 7 #import('dart:io');
8 #import('dart:uri'); 8 #import('dart:uri');
9 #import('dart:utf'); 9 #import('dart:utf');
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 List<OptionHandler> handlers = <OptionHandler>[ 118 List<OptionHandler> handlers = <OptionHandler>[
119 new OptionHandler('-[chv?]+', handleShortOptions), 119 new OptionHandler('-[chv?]+', handleShortOptions),
120 new OptionHandler('--throw-on-error', (_) => throwOnError = true), 120 new OptionHandler('--throw-on-error', (_) => throwOnError = true),
121 new OptionHandler('--suppress-warnings', (_) => showWarnings = false), 121 new OptionHandler('--suppress-warnings', (_) => showWarnings = false),
122 new OptionHandler('--output-type=dart|--output-type=js', passThrough), 122 new OptionHandler('--output-type=dart|--output-type=js', passThrough),
123 new OptionHandler('--verbose', (_) => verbose = true), 123 new OptionHandler('--verbose', (_) => verbose = true),
124 new OptionHandler('--library-root=.+', setLibraryRoot), 124 new OptionHandler('--library-root=.+', setLibraryRoot),
125 new OptionHandler('--out=.+|-o.+', setOutput), 125 new OptionHandler('--out=.+|-o.+', setOutput),
126 new OptionHandler('--allow-mock-compilation', passThrough), 126 new OptionHandler('--allow-mock-compilation', passThrough),
127 new OptionHandler('--minify', passThrough), 127 new OptionHandler('--minify', passThrough),
128 new OptionHandler('--cut-declaration-types', passThrough),
128 new OptionHandler('--no-colors', (_) => enableColors = false), 129 new OptionHandler('--no-colors', (_) => enableColors = false),
129 new OptionHandler('--enable[_-]checked[_-]mode|--checked', 130 new OptionHandler('--enable[_-]checked[_-]mode|--checked',
130 (_) => passThrough('--enable-checked-mode')), 131 (_) => passThrough('--enable-checked-mode')),
131 new OptionHandler(@'--help|/\?|/h', (_) => wantHelp = true), 132 new OptionHandler(@'--help|/\?|/h', (_) => wantHelp = true),
132 new OptionHandler(@'--package-root=.+|-p.+', setPackageRoot), 133 new OptionHandler(@'--package-root=.+|-p.+', setPackageRoot),
133 // The following two options must come last. 134 // The following two options must come last.
134 new OptionHandler('-.*', (String argument) { 135 new OptionHandler('-.*', (String argument) {
135 helpAndFail('Error: Unknown option "$argument".'); 136 helpAndFail('Error: Unknown option "$argument".');
136 }), 137 }),
137 new OptionHandler('.*', (String argument) { 138 new OptionHandler('.*', (String argument) {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 } catch (ignored) { 378 } catch (ignored) {
378 print('Internal error: error while printing exception'); 379 print('Internal error: error while printing exception');
379 } 380 }
380 try { 381 try {
381 print(trace); 382 print(trace);
382 } finally { 383 } finally {
383 exit(253); // 253 is recognized as a crash by our test scripts. 384 exit(253); // 253 is recognized as a crash by our test scripts.
384 } 385 }
385 } 386 }
386 } 387 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/apiimpl.dart ('k') | tests/compiler/dart2js/unparser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698