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

Unified Diff: utils/lib/file_system_vm.dart

Issue 12609004: Change all File APIs to make the mode and encoding arguments named (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments and changed other use places Created 7 years, 9 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 | « tests/standalone/io/skipping_dart2js_compilations_test.dart ('k') | utils/pub/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/lib/file_system_vm.dart
diff --git a/utils/lib/file_system_vm.dart b/utils/lib/file_system_vm.dart
index 12fb712873de0e40654cfab2daf53d33f4431255..7c09b7014e012f8c35487ae0c651bece05feaee6 100644
--- a/utils/lib/file_system_vm.dart
+++ b/utils/lib/file_system_vm.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -12,7 +12,7 @@ import 'dart:utf';
/** File system implementation using the vm api's. */
class VMFileSystem implements FileSystem {
void writeString(String path, String text) {
- var file = new File(path).openSync(FileMode.WRITE);
+ var file = new File(path).openSync(mode: FileMode.WRITE);
file.writeStringSync(text);
file.closeSync();
}
« no previous file with comments | « tests/standalone/io/skipping_dart2js_compilations_test.dart ('k') | utils/pub/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698