| OLD | NEW |
| 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.cmdline; | 5 library dart2js.cmdline; |
| 6 | 6 |
| 7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
| 8 import 'dart:convert' show UTF8, LineSplitter; | 8 import 'dart:convert' show UTF8, LineSplitter; |
| 9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; | 9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; |
| 10 | 10 |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 new OptionHandler(Flags.preserveUris, passThrough), | 349 new OptionHandler(Flags.preserveUris, passThrough), |
| 350 new OptionHandler('--force-strip=.*', setStrip), | 350 new OptionHandler('--force-strip=.*', setStrip), |
| 351 new OptionHandler(Flags.disableDiagnosticColors, (_) { | 351 new OptionHandler(Flags.disableDiagnosticColors, (_) { |
| 352 enableColors = false; | 352 enableColors = false; |
| 353 }), | 353 }), |
| 354 new OptionHandler(Flags.enableDiagnosticColors, (_) { | 354 new OptionHandler(Flags.enableDiagnosticColors, (_) { |
| 355 enableColors = true; | 355 enableColors = true; |
| 356 }), | 356 }), |
| 357 new OptionHandler('--enable[_-]checked[_-]mode|--checked', | 357 new OptionHandler('--enable[_-]checked[_-]mode|--checked', |
| 358 (_) => setCheckedMode(Flags.enableCheckedMode)), | 358 (_) => setCheckedMode(Flags.enableCheckedMode)), |
| 359 new OptionHandler(Flags.enableAsserts, passThrough), |
| 359 new OptionHandler(Flags.trustTypeAnnotations, | 360 new OptionHandler(Flags.trustTypeAnnotations, |
| 360 (_) => setTrustTypeAnnotations(Flags.trustTypeAnnotations)), | 361 (_) => setTrustTypeAnnotations(Flags.trustTypeAnnotations)), |
| 361 new OptionHandler(Flags.trustPrimitives, | 362 new OptionHandler(Flags.trustPrimitives, |
| 362 (_) => setTrustPrimitives(Flags.trustPrimitives)), | 363 (_) => setTrustPrimitives(Flags.trustPrimitives)), |
| 363 new OptionHandler( | 364 new OptionHandler( |
| 364 Flags.trustJSInteropTypeAnnotations, | 365 Flags.trustJSInteropTypeAnnotations, |
| 365 (_) => setTrustJSInteropTypeAnnotations( | 366 (_) => setTrustJSInteropTypeAnnotations( |
| 366 Flags.trustJSInteropTypeAnnotations)), | 367 Flags.trustJSInteropTypeAnnotations)), |
| 367 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), | 368 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), |
| 368 new OptionHandler('--packages=.+', setPackageConfig), | 369 new OptionHandler('--packages=.+', setPackageConfig), |
| (...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1089 @override | 1090 @override |
| 1090 void add(String event) { | 1091 void add(String event) { |
| 1091 sb.write(event); | 1092 sb.write(event); |
| 1092 } | 1093 } |
| 1093 | 1094 |
| 1094 @override | 1095 @override |
| 1095 void close() { | 1096 void close() { |
| 1096 // Do nothing. | 1097 // Do nothing. |
| 1097 } | 1098 } |
| 1098 } | 1099 } |
| OLD | NEW |