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

Unified Diff: pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart

Issue 3001963002: [dart:io] Namespaces for file IO (Closed)
Patch Set: Fuchsia fix Created 3 years, 4 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 | « no previous file | runtime/bin/dartutils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart b/pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart
index 31cfd05739b7f268d3ffbc3b77754f2587114c40..ee95021dc81c6127777166e95555c8f4e3ecdb94 100644
--- a/pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart
+++ b/pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart
@@ -12,12 +12,12 @@ class _Directory {
}
@patch
- static _setCurrent(path) {
+ static _setCurrent(_Namespace namespace, path) {
throw new UnsupportedError("Directory_SetCurrent");
}
@patch
- static _createTemp(String path) {
+ static _createTemp(_Namespace namespace, String path) {
throw new UnsupportedError("Directory._createTemp");
}
@@ -27,28 +27,29 @@ class _Directory {
}
@patch
- static _exists(String path) {
+ static _exists(_Namespace namespace, String path) {
throw new UnsupportedError("Directory._exists");
}
@patch
- static _create(String path) {
+ static _create(_Namespace namespace, String path) {
throw new UnsupportedError("Directory._create");
}
@patch
- static _deleteNative(String path, bool recursive) {
+ static _deleteNative(_Namespace namespace, String path, bool recursive) {
throw new UnsupportedError("Directory._deleteNative");
}
@patch
- static _rename(String path, String newPath) {
+ static _rename(_Namespace namespace, String path, String newPath) {
throw new UnsupportedError("Directory._rename");
}
@patch
- static void _fillWithDirectoryListing(List<FileSystemEntity> list,
- String path, bool recursive, bool followLinks) {
+ static void _fillWithDirectoryListing(
+ _Namespace namespace, List<FileSystemEntity> list, String path,
+ bool recursive, bool followLinks) {
throw new UnsupportedError("Directory._fillWithDirectoryListing");
}
}
@@ -72,7 +73,7 @@ class _EventHandler {
@patch
class FileStat {
@patch
- static _statSync(String path) {
+ static _statSync(_Namespace namespace, String path) {
throw new UnsupportedError("FileStat.stat");
}
}
@@ -80,17 +81,17 @@ class FileStat {
@patch
class FileSystemEntity {
@patch
- static _getType(String path, bool followLinks) {
+ static _getType(_Namespace namespace, String path, bool followLinks) {
throw new UnsupportedError("FileSystemEntity._getType");
}
@patch
- static _identical(String path1, String path2) {
+ static _identical(_Namespace namespace, String path1, String path2) {
throw new UnsupportedError("FileSystemEntity._identical");
}
@patch
- static _resolveSymbolicLinks(String path) {
+ static _resolveSymbolicLinks(_Namespace namespace, String path) {
throw new UnsupportedError("FileSystemEntity._resolveSymbolicLinks");
}
}
@@ -98,77 +99,77 @@ class FileSystemEntity {
@patch
class _File {
@patch
- static _exists(String path) {
+ static _exists(_Namespace namespace, String path) {
throw new UnsupportedError("File._exists");
}
@patch
- static _create(String path) {
+ static _create(_Namespace namespace, String path) {
throw new UnsupportedError("File._create");
}
@patch
- static _createLink(String path, String target) {
+ static _createLink(_Namespace namespace, String path, String target) {
throw new UnsupportedError("File._createLink");
}
@patch
- static _linkTarget(String path) {
+ static _linkTarget(_Namespace namespace, String path) {
throw new UnsupportedError("File._linkTarget");
}
@patch
- static _deleteNative(String path) {
+ static _deleteNative(_Namespace namespace, String path) {
throw new UnsupportedError("File._deleteNative");
}
@patch
- static _deleteLinkNative(String path) {
+ static _deleteLinkNative(_Namespace namespace, String path) {
throw new UnsupportedError("File._deleteLinkNative");
}
@patch
- static _rename(String oldPath, String newPath) {
+ static _rename(_Namespace namespace, String oldPath, String newPath) {
throw new UnsupportedError("File._rename");
}
@patch
- static _renameLink(String oldPath, String newPath) {
+ static _renameLink(_Namespace namespace, String oldPath, String newPath) {
throw new UnsupportedError("File._renameLink");
}
@patch
- static _copy(String oldPath, String newPath) {
+ static _copy(_Namespace namespace, String oldPath, String newPath) {
throw new UnsupportedError("File._copy");
}
@patch
- static _lengthFromPath(String path) {
+ static _lengthFromPath(_Namespace namespace, String path) {
throw new UnsupportedError("File._lengthFromPath");
}
@patch
- static _lastModified(String path) {
+ static _lastModified(_Namespace namespace, String path) {
throw new UnsupportedError("File._lastModified");
}
@patch
- static _lastAccessed(String path) {
+ static _lastAccessed(_Namespace namespace, String path) {
throw new UnsupportedError("File._lastAccessed");
}
@patch
- static _setLastModified(String path, int millis) {
+ static _setLastModified(_Namespace namespace, String path, int millis) {
throw new UnsupportedError("File._setLastModified");
}
@patch
- static _setLastAccessed(String path, int millis) {
+ static _setLastAccessed(_Namespace namespace, String path, int millis) {
throw new UnsupportedError("File._setLastAccessed");
}
@patch
- static _open(String path, int mode) {
+ static _open(_Namespace namespace, String path, int mode) {
throw new UnsupportedError("File._open");
}
@@ -178,6 +179,24 @@ class _File {
}
}
+@patch
+class _Namespace {
+ @patch
+ static void set _namespace(var namespace) {
+ throw new UnsupportedError("_Namespace");
+ }
+
+ @patch
+ static _Namespace get _namespace {
+ throw new UnsupportedError("_Namespace");
+ }
+
+ @patch
+ static int get _namespacePointer {
+ throw new UnsupportedError("_Namespace");
+ }
+}
+
@patch
class _RandomAccessFileOps {
@patch
« no previous file with comments | « no previous file | runtime/bin/dartutils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698