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.enableAsserts, 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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 @override | 1081 @override |
1081 void add(String event) { | 1082 void add(String event) { |
1082 sb.write(event); | 1083 sb.write(event); |
1083 } | 1084 } |
1084 | 1085 |
1085 @override | 1086 @override |
1086 void close() { | 1087 void close() { |
1087 // Do nothing. | 1088 // Do nothing. |
1088 } | 1089 } |
1089 } | 1090 } |
OLD | NEW |