| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 new OptionHandler(Flags.preserveUris, passThrough), | 343 new OptionHandler(Flags.preserveUris, passThrough), |
| 344 new OptionHandler('--force-strip=.*', setStrip), | 344 new OptionHandler('--force-strip=.*', setStrip), |
| 345 new OptionHandler(Flags.disableDiagnosticColors, (_) { | 345 new OptionHandler(Flags.disableDiagnosticColors, (_) { |
| 346 enableColors = false; | 346 enableColors = false; |
| 347 }), | 347 }), |
| 348 new OptionHandler(Flags.enableDiagnosticColors, (_) { | 348 new OptionHandler(Flags.enableDiagnosticColors, (_) { |
| 349 enableColors = true; | 349 enableColors = true; |
| 350 }), | 350 }), |
| 351 new OptionHandler('--enable[_-]checked[_-]mode|--checked', | 351 new OptionHandler('--enable[_-]checked[_-]mode|--checked', |
| 352 (_) => setCheckedMode(Flags.enableCheckedMode)), | 352 (_) => setCheckedMode(Flags.enableCheckedMode)), |
| 353 new OptionHandler(Flags.enableAssert, passThrough), |
| 353 new OptionHandler(Flags.trustTypeAnnotations, | 354 new OptionHandler(Flags.trustTypeAnnotations, |
| 354 (_) => setTrustTypeAnnotations(Flags.trustTypeAnnotations)), | 355 (_) => setTrustTypeAnnotations(Flags.trustTypeAnnotations)), |
| 355 new OptionHandler(Flags.trustPrimitives, | 356 new OptionHandler(Flags.trustPrimitives, |
| 356 (_) => setTrustPrimitives(Flags.trustPrimitives)), | 357 (_) => setTrustPrimitives(Flags.trustPrimitives)), |
| 357 new OptionHandler( | 358 new OptionHandler( |
| 358 Flags.trustJSInteropTypeAnnotations, | 359 Flags.trustJSInteropTypeAnnotations, |
| 359 (_) => setTrustJSInteropTypeAnnotations( | 360 (_) => setTrustJSInteropTypeAnnotations( |
| 360 Flags.trustJSInteropTypeAnnotations)), | 361 Flags.trustJSInteropTypeAnnotations)), |
| 361 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), | 362 new OptionHandler(r'--help|/\?|/h', (_) => wantHelp = true), |
| 362 new OptionHandler('--packages=.+', setPackageConfig), | 363 new OptionHandler('--packages=.+', setPackageConfig), |
| (...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1079 @override | 1080 @override |
| 1080 void add(String event) { | 1081 void add(String event) { |
| 1081 sb.write(event); | 1082 sb.write(event); |
| 1082 } | 1083 } |
| 1083 | 1084 |
| 1084 @override | 1085 @override |
| 1085 void close() { | 1086 void close() { |
| 1086 // Do nothing. | 1087 // Do nothing. |
| 1087 } | 1088 } |
| 1088 } | 1089 } |
| OLD | NEW |