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

Unified Diff: sdk/lib/io/file.dart

Issue 11663004: Fix File.writeAsString to use named optional arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | « no previous file | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/file.dart
diff --git a/sdk/lib/io/file.dart b/sdk/lib/io/file.dart
index 6ae896f180975d726c8100803b822feb80398a90..b4d90b03d1d09dc37e046209644727df020d052e 100644
--- a/sdk/lib/io/file.dart
+++ b/sdk/lib/io/file.dart
@@ -250,8 +250,8 @@ abstract class File {
* file pass [:FileMode.APPEND:] as the optional mode parameter.
*/
Future<File> writeAsString(String contents,
- [Encoding encoding = Encoding.UTF_8,
- FileMode mode = FileMode.WRITE]);
+ {FileMode mode: FileMode.WRITE,
+ Encoding encoding: Encoding.UTF_8});
/**
* Synchronously write a string to a file.
@@ -265,8 +265,8 @@ abstract class File {
* parameter.
*/
void writeAsStringSync(String contents,
- [Encoding encoding = Encoding.UTF_8,
- FileMode mode = FileMode.WRITE]);
+ {FileMode mode: FileMode.WRITE,
+ Encoding encoding: Encoding.UTF_8});
/**
* Get the name of the file.
« no previous file with comments | « no previous file | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698