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

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: Updated cf. comments + test expanded 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),
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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 397
397 --analyze-all 398 --analyze-all
398 Analyze all code. Without this option, the compiler only analyzes 399 Analyze all code. Without this option, the compiler only analyzes
399 code that is reachable from [main]. This option is useful for 400 code that is reachable from [main]. This option is useful for
400 finding errors in libraries, but using it can result in bigger and 401 finding errors in libraries, but using it can result in bigger and
401 slower output. 402 slower output.
402 403
403 --analyze-only 404 --analyze-only
404 Analyze but do not generate code. 405 Analyze but do not generate code.
405 406
407 --analyze-signatures-only
408 Skip analysis of method bodies and field initializers. This option implies
409 --analyze-only.
410
406 --minify 411 --minify
407 Generate minified output. 412 Generate minified output.
408 413
409 --disallow-unsafe-eval 414 --disallow-unsafe-eval
410 Disable dynamic generation of code in the generated output. This is 415 Disable dynamic generation of code in the generated output. This is
411 necessary to satisfy CSP restrictions (see http://www.w3.org/TR/CSP/). 416 necessary to satisfy CSP restrictions (see http://www.w3.org/TR/CSP/).
412 417
413 --suppress-warnings 418 --suppress-warnings
414 Do not display any warnings. 419 Do not display any warnings.
415 420
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 } catch (ignored) { 491 } catch (ignored) {
487 print('Internal error: error while printing exception'); 492 print('Internal error: error while printing exception');
488 } 493 }
489 try { 494 try {
490 print(trace); 495 print(trace);
491 } finally { 496 } finally {
492 exit(253); // 253 is recognized as a crash by our test scripts. 497 exit(253); // 253 is recognized as a crash by our test scripts.
493 } 498 }
494 } 499 }
495 } 500 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698