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

Side by Side Diff: sdk/lib/io/process.dart

Issue 349753002: Fix typo in dart:io process documentation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update Copyright Header in dart:io process Created 6 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 void _exit(int status); 10 external static void _exit(int status);
11 external static void _setExitCode(int status); 11 external static void _setExitCode(int status);
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 /** 380 /**
381 * Exit code for the process. 381 * Exit code for the process.
382 * 382 *
383 * See [Process.exitCode] for more information in the exit code 383 * See [Process.exitCode] for more information in the exit code
384 * value. 384 * value.
385 */ 385 */
386 int get exitCode; 386 int get exitCode;
387 387
388 /** 388 /**
389 * Standard output from the process. The value used for the 389 * Standard output from the process. The value used for the
390 * `stdoutEncoding` argument to `Process.run` determins the type. If 390 * `stdoutEncoding` argument to `Process.run` determines the type. If
391 * `null` was used this value is of type `List<int> otherwise it is 391 * `null` was used this value is of type `List<int> otherwise it is
392 * of type `String`. 392 * of type `String`.
393 */ 393 */
394 get stdout; 394 get stdout;
395 395
396 /** 396 /**
397 * Standard error from the process. The value used for the 397 * Standard error from the process. The value used for the
398 * `stderrEncoding` argument to `Process.run` determins the type. If 398 * `stderrEncoding` argument to `Process.run` determines the type. If
399 * `null` was used this value is of type `List<int> 399 * `null` was used this value is of type `List<int>
400 * otherwise it is of type `String`. 400 * otherwise it is of type `String`.
401 */ 401 */
402 get stderr; 402 get stderr;
403 403
404 /** 404 /**
405 * Process id from the process. 405 * Process id from the process.
406 */ 406 */
407 int get pid; 407 int get pid;
408 } 408 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 final int errorCode; 513 final int errorCode;
514 514
515 const ProcessException(this.executable, this.arguments, [this.message = "", 515 const ProcessException(this.executable, this.arguments, [this.message = "",
516 this.errorCode = 0]); 516 this.errorCode = 0]);
517 String toString() { 517 String toString() {
518 var msg = (message == null) ? 'OS error code: $errorCode' : message; 518 var msg = (message == null) ? 'OS error code: $errorCode' : message;
519 var args = arguments.join(' '); 519 var args = arguments.join(' ');
520 return "ProcessException: $msg\n Command: $executable $args"; 520 return "ProcessException: $msg\n Command: $executable $args";
521 } 521 }
522 } 522 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698