| 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 part of dart.io; | 5 part of dart.io; |
| 6 | 6 |
| 7 // TODO(ager): The only reason for this class is that we | 7 // TODO(ager): The only reason for this class is that we |
| 8 // cannot patch a top-level at this point. | 8 // cannot patch a top-level at this point. |
| 9 class _ProcessUtils { | 9 class _ProcessUtils { |
| 10 external static _exit(int status); | 10 external static _exit(int status); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 * non-interactive. | 108 * non-interactive. |
| 109 */ | 109 */ |
| 110 Stream<List<int>> get stderr; | 110 Stream<List<int>> get stderr; |
| 111 | 111 |
| 112 /** | 112 /** |
| 113 * Returns the standard input stream of the process as an [IOSink]. | 113 * Returns the standard input stream of the process as an [IOSink]. |
| 114 * | 114 * |
| 115 * Throws an [UnsupportedError] if the process is | 115 * Throws an [UnsupportedError] if the process is |
| 116 * non-interactive. | 116 * non-interactive. |
| 117 */ | 117 */ |
| 118 IOSink<Process> get stdin; | 118 IOSink get stdin; |
| 119 | 119 |
| 120 /** | 120 /** |
| 121 * Returns a [:Future:] which completes with the exit code of the process | 121 * Returns a [:Future:] which completes with the exit code of the process |
| 122 * when the process completes. | 122 * when the process completes. |
| 123 * | 123 * |
| 124 * Throws an [UnsupportedError] if the process is | 124 * Throws an [UnsupportedError] if the process is |
| 125 * non-interactive. | 125 * non-interactive. |
| 126 */ | 126 */ |
| 127 Future<int> exitCode; | 127 Future<int> exitCode; |
| 128 | 128 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 /** | 274 /** |
| 275 * Contains the system message for the process exception if any. | 275 * Contains the system message for the process exception if any. |
| 276 */ | 276 */ |
| 277 final String message; | 277 final String message; |
| 278 | 278 |
| 279 /** | 279 /** |
| 280 * Contains the OS error code for the process exception if any. | 280 * Contains the OS error code for the process exception if any. |
| 281 */ | 281 */ |
| 282 final int errorCode; | 282 final int errorCode; |
| 283 } | 283 } |
| OLD | NEW |