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

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

Issue 816353012: Mark all private functions in dart: libraries as invisible (*sniff*). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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_impl.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/file_impl.dart
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
index b0babc24df49219b9ade531d9f0cf6a52e7b142e..34e03ded1a8a511de20d362ee2cd38badcc5ce8b 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -232,7 +232,7 @@ class _File extends FileSystemEntity implements File {
}
Future<bool> exists() {
- return _IOService.dispatch(_FILE_EXISTS, [path]).then((response) {
+ return _IOService._dispatch(_FILE_EXISTS, [path]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response, "Cannot check existence", path);
}
@@ -258,7 +258,7 @@ class _File extends FileSystemEntity implements File {
var result = recursive ? parent.create(recursive: true)
: new Future.value(null);
return result
- .then((_) => _IOService.dispatch(_FILE_CREATE, [path]))
+ .then((_) => _IOService._dispatch(_FILE_CREATE, [path]))
.then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response, "Cannot create file", path);
@@ -285,7 +285,7 @@ class _File extends FileSystemEntity implements File {
if (recursive) {
return new Directory(path).delete(recursive: true).then((_) => this);
}
- return _IOService.dispatch(_FILE_DELETE, [path]).then((response) {
+ return _IOService._dispatch(_FILE_DELETE, [path]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response, "Cannot delete file", path);
}
@@ -306,7 +306,7 @@ class _File extends FileSystemEntity implements File {
}
Future<File> rename(String newPath) {
- return _IOService.dispatch(_FILE_RENAME, [path, newPath]).then((response) {
+ return _IOService._dispatch(_FILE_RENAME, [path, newPath]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(
response, "Cannot rename file to '$newPath'", path);
@@ -326,7 +326,7 @@ class _File extends FileSystemEntity implements File {
}
Future<File> copy(String newPath) {
- return _IOService.dispatch(_FILE_COPY, [path, newPath]).then((response) {
+ return _IOService._dispatch(_FILE_COPY, [path, newPath]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(
response, "Cannot copy file to '$newPath'", path);
@@ -349,7 +349,7 @@ class _File extends FileSystemEntity implements File {
mode != FileMode.APPEND) {
return new Future.error(new ArgumentError());
}
- return _IOService.dispatch(_FILE_OPEN, [path, mode._mode]).then((response) {
+ return _IOService._dispatch(_FILE_OPEN, [path, mode._mode]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response, "Cannot open file", path);
}
@@ -358,7 +358,7 @@ class _File extends FileSystemEntity implements File {
}
Future<int> length() {
- return _IOService.dispatch(_FILE_LENGTH_FROM_PATH, [path]).then((response) {
+ return _IOService._dispatch(_FILE_LENGTH_FROM_PATH, [path]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response,
"Cannot retrieve length of file",
@@ -378,7 +378,7 @@ class _File extends FileSystemEntity implements File {
}
Future<DateTime> lastModified() {
- return _IOService.dispatch(_FILE_LAST_MODIFIED, [path]).then((response) {
+ return _IOService._dispatch(_FILE_LAST_MODIFIED, [path]).then((response) {
if (_isErrorResponse(response)) {
throw _exceptionFromResponse(response,
"Cannot retrieve modification time",
@@ -1035,7 +1035,7 @@ class _RandomAccessFile
_id = 0;
}
_asyncDispatched = true;
- return _IOService.dispatch(request, data)
+ return _IOService._dispatch(request, data)
.whenComplete(() {
_asyncDispatched = false;
});
« no previous file with comments | « sdk/lib/io/directory_impl.dart ('k') | sdk/lib/io/file_system_entity.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698