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

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

Issue 2119483002: Fix typos in docs (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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
« 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) 2014, 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);
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 * Exit code for the process. 438 * Exit code for the process.
439 * 439 *
440 * See [Process.exitCode] for more information in the exit code 440 * See [Process.exitCode] for more information in the exit code
441 * value. 441 * value.
442 */ 442 */
443 final int exitCode; 443 final int exitCode;
444 444
445 /** 445 /**
446 * Standard output from the process. The value used for the 446 * Standard output from the process. The value used for the
447 * `stdoutEncoding` argument to `Process.run` determines the type. If 447 * `stdoutEncoding` argument to `Process.run` determines the type. If
448 * `null` was used this value is of type `List<int> otherwise it is 448 * `null` was used this value is of type `List<int>` otherwise it is
449 * of type `String`. 449 * of type `String`.
450 */ 450 */
451 final stdout; 451 final stdout;
452 452
453 /** 453 /**
454 * Standard error from the process. The value used for the 454 * Standard error from the process. The value used for the
455 * `stderrEncoding` argument to `Process.run` determines the type. If 455 * `stderrEncoding` argument to `Process.run` determines the type. If
456 * `null` was used this value is of type `List<int> 456 * `null` was used this value is of type `List<int>`
457 * otherwise it is of type `String`. 457 * otherwise it is of type `String`.
458 */ 458 */
459 final stderr; 459 final stderr;
460 460
461 /** 461 /**
462 * Process id of the process. 462 * Process id of the process.
463 */ 463 */
464 final int pid; 464 final int pid;
465 465
466 ProcessResult(this.pid, this.exitCode, this.stdout, this.stderr); 466 ProcessResult(this.pid, this.exitCode, this.stdout, this.stderr);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 final int errorCode; 572 final int errorCode;
573 573
574 const ProcessException(this.executable, this.arguments, [this.message = "", 574 const ProcessException(this.executable, this.arguments, [this.message = "",
575 this.errorCode = 0]); 575 this.errorCode = 0]);
576 String toString() { 576 String toString() {
577 var msg = (message == null) ? 'OS error code: $errorCode' : message; 577 var msg = (message == null) ? 'OS error code: $errorCode' : message;
578 var args = arguments.join(' '); 578 var args = arguments.join(' ');
579 return "ProcessException: $msg\n Command: $executable $args"; 579 return "ProcessException: $msg\n Command: $executable $args";
580 } 580 }
581 } 581 }
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