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

Unified Diff: runtime/bin/stream_util.dart

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/socket_stream_impl.dart ('k') | runtime/lib/date_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stream_util.dart
===================================================================
--- runtime/bin/stream_util.dart (revision 13683)
+++ runtime/bin/stream_util.dart (working copy)
@@ -31,7 +31,7 @@
return _readInto(buffer, offset, bytesToRead);
}
- void pipe(OutputStream output, [bool close = true]) {
+ void pipe(OutputStream output, {bool close: true}) {
_pipe(this, output, close: close);
}
@@ -145,7 +145,7 @@
}
-void _pipe(InputStream input, OutputStream output, [bool close]) {
+void _pipe(InputStream input, OutputStream output, {bool close}) {
Function pipeDataHandler;
Function pipeCloseHandler;
Function pipeNoPendingWriteHandler;
@@ -188,7 +188,7 @@
// Encode and write data.
_StringEncoder encoder = _StringEncoders.encoder(encoding);
List<int> data = encoder.encodeString(string);
- return write(data, copyBuffer: false);
+ return write(data, false);
}
return true;
}
« no previous file with comments | « runtime/bin/socket_stream_impl.dart ('k') | runtime/lib/date_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698