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

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

Issue 11293244: Implement --analyze-all option. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 new OptionHandler('--disable-diagnostic-colors', 156 new OptionHandler('--disable-diagnostic-colors',
157 (_) => enableColors = false), 157 (_) => enableColors = false),
158 new OptionHandler('--enable-diagnostic-colors', (_) => enableColors = true), 158 new OptionHandler('--enable-diagnostic-colors', (_) => enableColors = true),
159 new OptionHandler('--enable[_-]checked[_-]mode|--checked', 159 new OptionHandler('--enable[_-]checked[_-]mode|--checked',
160 (_) => passThrough('--enable-checked-mode')), 160 (_) => passThrough('--enable-checked-mode')),
161 new OptionHandler('--enable-concrete-type-inference', 161 new OptionHandler('--enable-concrete-type-inference',
162 (_) => passThrough('--enable-concrete-type-inference')), 162 (_) => passThrough('--enable-concrete-type-inference')),
163 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), 163 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true),
164 new OptionHandler('--package-root=.+|-p.+', setPackageRoot), 164 new OptionHandler('--package-root=.+|-p.+', setPackageRoot),
165 new OptionHandler('--disallow-unsafe-eval', passThrough), 165 new OptionHandler('--disallow-unsafe-eval', passThrough),
166 new OptionHandler('--analyze-all', passThrough),
166 // The following two options must come last. 167 // The following two options must come last.
167 new OptionHandler('-.*', (String argument) { 168 new OptionHandler('-.*', (String argument) {
168 helpAndFail('Error: Unknown option "$argument".'); 169 helpAndFail('Error: Unknown option "$argument".');
169 }), 170 }),
170 new OptionHandler('.*', (String argument) { 171 new OptionHandler('.*', (String argument) {
171 arguments.add(nativeToUriPath(argument)); 172 arguments.add(nativeToUriPath(argument));
172 }) 173 })
173 ]; 174 ];
174 175
175 parseCommandLine(handlers, argv); 176 parseCommandLine(handlers, argv);
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 } catch (ignored) { 434 } catch (ignored) {
434 print('Internal error: error while printing exception'); 435 print('Internal error: error while printing exception');
435 } 436 }
436 try { 437 try {
437 print(trace); 438 print(trace);
438 } finally { 439 } finally {
439 exit(253); // 253 is recognized as a crash by our test scripts. 440 exit(253); // 253 is recognized as a crash by our test scripts.
440 } 441 }
441 } 442 }
442 } 443 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698