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

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

Issue 14969040: Add a new flag to dart2js: --trust-type-annotations and implement it in the types inferrer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 new OptionHandler('--force-strip=.*', setStrip), 205 new OptionHandler('--force-strip=.*', setStrip),
206 // TODO(ahe): Remove the --no-colors option. 206 // TODO(ahe): Remove the --no-colors option.
207 new OptionHandler('--disable-diagnostic-colors', 207 new OptionHandler('--disable-diagnostic-colors',
208 (_) => diagnosticHandler.enableColors = false), 208 (_) => diagnosticHandler.enableColors = false),
209 new OptionHandler('--enable-diagnostic-colors', 209 new OptionHandler('--enable-diagnostic-colors',
210 (_) => diagnosticHandler.enableColors = true), 210 (_) => diagnosticHandler.enableColors = true),
211 new OptionHandler('--enable[_-]checked[_-]mode|--checked', 211 new OptionHandler('--enable[_-]checked[_-]mode|--checked',
212 (_) => passThrough('--enable-checked-mode')), 212 (_) => passThrough('--enable-checked-mode')),
213 new OptionHandler('--enable-concrete-type-inference', 213 new OptionHandler('--enable-concrete-type-inference',
214 (_) => passThrough('--enable-concrete-type-inference')), 214 (_) => passThrough('--enable-concrete-type-inference')),
215 new OptionHandler('--trust-type-annotations',
216 (_) => passThrough('--trust-type-annotations')),
215 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), 217 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true),
216 new OptionHandler('--package-root=.+|-p.+', setPackageRoot), 218 new OptionHandler('--package-root=.+|-p.+', setPackageRoot),
217 new OptionHandler('--disallow-unsafe-eval', passThrough), 219 new OptionHandler('--disallow-unsafe-eval', passThrough),
218 new OptionHandler('--analyze-all', passThrough), 220 new OptionHandler('--analyze-all', passThrough),
219 new OptionHandler('--analyze-only', setAnalyzeOnly), 221 new OptionHandler('--analyze-only', setAnalyzeOnly),
220 new OptionHandler('--analyze-signatures-only', passThrough), 222 new OptionHandler('--analyze-signatures-only', passThrough),
221 new OptionHandler('--disable-native-live-type-analysis', passThrough), 223 new OptionHandler('--disable-native-live-type-analysis', passThrough),
222 new OptionHandler('--reject-deprecated-language-features', passThrough), 224 new OptionHandler('--reject-deprecated-language-features', passThrough),
223 new OptionHandler('--report-sdk-use-of-deprecated-language-features', 225 new OptionHandler('--report-sdk-use-of-deprecated-language-features',
224 passThrough), 226 passThrough),
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 print(trace); 516 print(trace);
515 } finally { 517 } finally {
516 exit(253); // 253 is recognized as a crash by our test scripts. 518 exit(253); // 253 is recognized as a crash by our test scripts.
517 } 519 }
518 } 520 }
519 } 521 }
520 522
521 void main() { 523 void main() {
522 mainWithErrorHandler(new Options()); 524 mainWithErrorHandler(new Options());
523 } 525 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698