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

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

Issue 12431009: Add --analyze-signatures-only option to dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test Created 7 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 | 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:async'; 7 import 'dart:async';
8 import 'dart:collection' show Queue, LinkedHashMap; 8 import 'dart:collection' show Queue, LinkedHashMap;
9 import 'dart:io'; 9 import 'dart:io';
10 import 'dart:uri'; 10 import 'dart:uri';
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 (_) => diagnosticHandler.enableColors = true), 192 (_) => diagnosticHandler.enableColors = true),
193 new OptionHandler('--enable[_-]checked[_-]mode|--checked', 193 new OptionHandler('--enable[_-]checked[_-]mode|--checked',
194 (_) => passThrough('--enable-checked-mode')), 194 (_) => passThrough('--enable-checked-mode')),
195 new OptionHandler('--enable-concrete-type-inference', 195 new OptionHandler('--enable-concrete-type-inference',
196 (_) => passThrough('--enable-concrete-type-inference')), 196 (_) => passThrough('--enable-concrete-type-inference')),
197 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), 197 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true),
198 new OptionHandler('--package-root=.+|-p.+', setPackageRoot), 198 new OptionHandler('--package-root=.+|-p.+', setPackageRoot),
199 new OptionHandler('--disallow-unsafe-eval', passThrough), 199 new OptionHandler('--disallow-unsafe-eval', passThrough),
200 new OptionHandler('--analyze-all', passThrough), 200 new OptionHandler('--analyze-all', passThrough),
201 new OptionHandler('--analyze-only', setAnalyzeOnly), 201 new OptionHandler('--analyze-only', setAnalyzeOnly),
202 new OptionHandler('--analyze-signatures-only', passThrough),
ahe 2013/03/05 14:32:59 Document option.
Johnni Winther 2013/03/05 16:52:49 Done.
202 new OptionHandler('--disable-native-live-type-analysis', passThrough), 203 new OptionHandler('--disable-native-live-type-analysis', passThrough),
203 new OptionHandler('--reject-deprecated-language-features', passThrough), 204 new OptionHandler('--reject-deprecated-language-features', passThrough),
204 new OptionHandler('--report-sdk-use-of-deprecated-language-features', 205 new OptionHandler('--report-sdk-use-of-deprecated-language-features',
205 passThrough), 206 passThrough),
206 new OptionHandler('--categories=.*', setCategories), 207 new OptionHandler('--categories=.*', setCategories),
207 208
208 // The following two options must come last. 209 // The following two options must come last.
209 new OptionHandler('-.*', (String argument) { 210 new OptionHandler('-.*', (String argument) {
210 helpAndFail('Error: Unknown option "$argument".'); 211 helpAndFail('Error: Unknown option "$argument".');
211 }), 212 }),
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 } catch (ignored) { 487 } catch (ignored) {
487 print('Internal error: error while printing exception'); 488 print('Internal error: error while printing exception');
488 } 489 }
489 try { 490 try {
490 print(trace); 491 print(trace);
491 } finally { 492 } finally {
492 exit(253); // 253 is recognized as a crash by our test scripts. 493 exit(253); // 253 is recognized as a crash by our test scripts.
493 } 494 }
494 } 495 }
495 } 496 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698