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

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

Issue 24645002: added bool type to named args in lib/io and lib/_internal (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: long line Created 7 years, 3 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 | « sdk/lib/io/directory.dart ('k') | sdk/lib/io/file_system_entity.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/directory_impl.dart
diff --git a/sdk/lib/io/directory_impl.dart b/sdk/lib/io/directory_impl.dart
index a1d8cae4f9c581a31f0f6ac26416cd3ca8c45a69..d1258fbc1928adeb967e673761c7f306cbc141b2 100644
--- a/sdk/lib/io/directory_impl.dart
+++ b/sdk/lib/io/directory_impl.dart
@@ -125,7 +125,7 @@ class _Directory extends FileSystemEntity implements Directory {
});
}
- Future<Directory> create({recursive: false}) {
+ Future<Directory> create({bool recursive: false}) {
if (recursive) return createRecursively();
return _IOService.dispatch(_DIRECTORY_CREATE, [path]).then((response) {
if (_isErrorResponse(response)) {
@@ -150,7 +150,7 @@ class _Directory extends FileSystemEntity implements Directory {
}
}
- void createSync({recursive: false}) {
+ void createSync({bool recursive: false}) {
if (recursive) return createRecursivelySync();
var result = _create(path);
if (result is OSError) {
@@ -178,7 +178,7 @@ class _Directory extends FileSystemEntity implements Directory {
return new Directory(result);
}
- Future<Directory> _delete({recursive: false}) {
+ Future<Directory> _delete({bool recursive: false}) {
return _IOService.dispatch(_DIRECTORY_DELETE, [path, recursive])
.then((response) {
if (_isErrorResponse(response)) {
@@ -188,7 +188,7 @@ class _Directory extends FileSystemEntity implements Directory {
});
}
- void _deleteSync({recursive: false}) {
+ void _deleteSync({bool recursive: false}) {
var result = _deleteNative(path, recursive);
if (result is OSError) {
throw new DirectoryException("Deletion failed", path, result);
« no previous file with comments | « sdk/lib/io/directory.dart ('k') | sdk/lib/io/file_system_entity.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698