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

Side by Side 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, 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/bin/dartutils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:_js_helper' show patch; 5 import 'dart:_js_helper' show patch;
6 6
7 @patch 7 @patch
8 class _Directory { 8 class _Directory {
9 @patch 9 @patch
10 static _current() { 10 static _current() {
11 throw new UnsupportedError("Directory._current"); 11 throw new UnsupportedError("Directory._current");
12 } 12 }
13 13
14 @patch 14 @patch
15 static _setCurrent(path) { 15 static _setCurrent(_Namespace namespace, path) {
16 throw new UnsupportedError("Directory_SetCurrent"); 16 throw new UnsupportedError("Directory_SetCurrent");
17 } 17 }
18 18
19 @patch 19 @patch
20 static _createTemp(String path) { 20 static _createTemp(_Namespace namespace, String path) {
21 throw new UnsupportedError("Directory._createTemp"); 21 throw new UnsupportedError("Directory._createTemp");
22 } 22 }
23 23
24 @patch 24 @patch
25 static String _systemTemp() { 25 static String _systemTemp() {
26 throw new UnsupportedError("Directory._systemTemp"); 26 throw new UnsupportedError("Directory._systemTemp");
27 } 27 }
28 28
29 @patch 29 @patch
30 static _exists(String path) { 30 static _exists(_Namespace namespace, String path) {
31 throw new UnsupportedError("Directory._exists"); 31 throw new UnsupportedError("Directory._exists");
32 } 32 }
33 33
34 @patch 34 @patch
35 static _create(String path) { 35 static _create(_Namespace namespace, String path) {
36 throw new UnsupportedError("Directory._create"); 36 throw new UnsupportedError("Directory._create");
37 } 37 }
38 38
39 @patch 39 @patch
40 static _deleteNative(String path, bool recursive) { 40 static _deleteNative(_Namespace namespace, String path, bool recursive) {
41 throw new UnsupportedError("Directory._deleteNative"); 41 throw new UnsupportedError("Directory._deleteNative");
42 } 42 }
43 43
44 @patch 44 @patch
45 static _rename(String path, String newPath) { 45 static _rename(_Namespace namespace, String path, String newPath) {
46 throw new UnsupportedError("Directory._rename"); 46 throw new UnsupportedError("Directory._rename");
47 } 47 }
48 48
49 @patch 49 @patch
50 static void _fillWithDirectoryListing(List<FileSystemEntity> list, 50 static void _fillWithDirectoryListing(
51 String path, bool recursive, bool followLinks) { 51 _Namespace namespace, List<FileSystemEntity> list, String path,
52 bool recursive, bool followLinks) {
52 throw new UnsupportedError("Directory._fillWithDirectoryListing"); 53 throw new UnsupportedError("Directory._fillWithDirectoryListing");
53 } 54 }
54 } 55 }
55 56
56 @patch 57 @patch
57 class _AsyncDirectoryListerOps { 58 class _AsyncDirectoryListerOps {
58 @patch 59 @patch
59 factory _AsyncDirectoryListerOps(int pointer) { 60 factory _AsyncDirectoryListerOps(int pointer) {
60 throw new UnsupportedError("Directory._list"); 61 throw new UnsupportedError("Directory._list");
61 } 62 }
62 } 63 }
63 64
64 @patch 65 @patch
65 class _EventHandler { 66 class _EventHandler {
66 @patch 67 @patch
67 static void _sendData(Object sender, SendPort sendPort, int data) { 68 static void _sendData(Object sender, SendPort sendPort, int data) {
68 throw new UnsupportedError("EventHandler._sendData"); 69 throw new UnsupportedError("EventHandler._sendData");
69 } 70 }
70 } 71 }
71 72
72 @patch 73 @patch
73 class FileStat { 74 class FileStat {
74 @patch 75 @patch
75 static _statSync(String path) { 76 static _statSync(_Namespace namespace, String path) {
76 throw new UnsupportedError("FileStat.stat"); 77 throw new UnsupportedError("FileStat.stat");
77 } 78 }
78 } 79 }
79 80
80 @patch 81 @patch
81 class FileSystemEntity { 82 class FileSystemEntity {
82 @patch 83 @patch
83 static _getType(String path, bool followLinks) { 84 static _getType(_Namespace namespace, String path, bool followLinks) {
84 throw new UnsupportedError("FileSystemEntity._getType"); 85 throw new UnsupportedError("FileSystemEntity._getType");
85 } 86 }
86 87
87 @patch 88 @patch
88 static _identical(String path1, String path2) { 89 static _identical(_Namespace namespace, String path1, String path2) {
89 throw new UnsupportedError("FileSystemEntity._identical"); 90 throw new UnsupportedError("FileSystemEntity._identical");
90 } 91 }
91 92
92 @patch 93 @patch
93 static _resolveSymbolicLinks(String path) { 94 static _resolveSymbolicLinks(_Namespace namespace, String path) {
94 throw new UnsupportedError("FileSystemEntity._resolveSymbolicLinks"); 95 throw new UnsupportedError("FileSystemEntity._resolveSymbolicLinks");
95 } 96 }
96 } 97 }
97 98
98 @patch 99 @patch
99 class _File { 100 class _File {
100 @patch 101 @patch
101 static _exists(String path) { 102 static _exists(_Namespace namespace, String path) {
102 throw new UnsupportedError("File._exists"); 103 throw new UnsupportedError("File._exists");
103 } 104 }
104 105
105 @patch 106 @patch
106 static _create(String path) { 107 static _create(_Namespace namespace, String path) {
107 throw new UnsupportedError("File._create"); 108 throw new UnsupportedError("File._create");
108 } 109 }
109 110
110 @patch 111 @patch
111 static _createLink(String path, String target) { 112 static _createLink(_Namespace namespace, String path, String target) {
112 throw new UnsupportedError("File._createLink"); 113 throw new UnsupportedError("File._createLink");
113 } 114 }
114 115
115 @patch 116 @patch
116 static _linkTarget(String path) { 117 static _linkTarget(_Namespace namespace, String path) {
117 throw new UnsupportedError("File._linkTarget"); 118 throw new UnsupportedError("File._linkTarget");
118 } 119 }
119 120
120 @patch 121 @patch
121 static _deleteNative(String path) { 122 static _deleteNative(_Namespace namespace, String path) {
122 throw new UnsupportedError("File._deleteNative"); 123 throw new UnsupportedError("File._deleteNative");
123 } 124 }
124 125
125 @patch 126 @patch
126 static _deleteLinkNative(String path) { 127 static _deleteLinkNative(_Namespace namespace, String path) {
127 throw new UnsupportedError("File._deleteLinkNative"); 128 throw new UnsupportedError("File._deleteLinkNative");
128 } 129 }
129 130
130 @patch 131 @patch
131 static _rename(String oldPath, String newPath) { 132 static _rename(_Namespace namespace, String oldPath, String newPath) {
132 throw new UnsupportedError("File._rename"); 133 throw new UnsupportedError("File._rename");
133 } 134 }
134 135
135 @patch 136 @patch
136 static _renameLink(String oldPath, String newPath) { 137 static _renameLink(_Namespace namespace, String oldPath, String newPath) {
137 throw new UnsupportedError("File._renameLink"); 138 throw new UnsupportedError("File._renameLink");
138 } 139 }
139 140
140 @patch 141 @patch
141 static _copy(String oldPath, String newPath) { 142 static _copy(_Namespace namespace, String oldPath, String newPath) {
142 throw new UnsupportedError("File._copy"); 143 throw new UnsupportedError("File._copy");
143 } 144 }
144 145
145 @patch 146 @patch
146 static _lengthFromPath(String path) { 147 static _lengthFromPath(_Namespace namespace, String path) {
147 throw new UnsupportedError("File._lengthFromPath"); 148 throw new UnsupportedError("File._lengthFromPath");
148 } 149 }
149 150
150 @patch 151 @patch
151 static _lastModified(String path) { 152 static _lastModified(_Namespace namespace, String path) {
152 throw new UnsupportedError("File._lastModified"); 153 throw new UnsupportedError("File._lastModified");
153 } 154 }
154 155
155 @patch 156 @patch
156 static _lastAccessed(String path) { 157 static _lastAccessed(_Namespace namespace, String path) {
157 throw new UnsupportedError("File._lastAccessed"); 158 throw new UnsupportedError("File._lastAccessed");
158 } 159 }
159 160
160 @patch 161 @patch
161 static _setLastModified(String path, int millis) { 162 static _setLastModified(_Namespace namespace, String path, int millis) {
162 throw new UnsupportedError("File._setLastModified"); 163 throw new UnsupportedError("File._setLastModified");
163 } 164 }
164 165
165 @patch 166 @patch
166 static _setLastAccessed(String path, int millis) { 167 static _setLastAccessed(_Namespace namespace, String path, int millis) {
167 throw new UnsupportedError("File._setLastAccessed"); 168 throw new UnsupportedError("File._setLastAccessed");
168 } 169 }
169 170
170 @patch 171 @patch
171 static _open(String path, int mode) { 172 static _open(_Namespace namespace, String path, int mode) {
172 throw new UnsupportedError("File._open"); 173 throw new UnsupportedError("File._open");
173 } 174 }
174 175
175 @patch 176 @patch
176 static int _openStdio(int fd) { 177 static int _openStdio(int fd) {
177 throw new UnsupportedError("File._openStdio"); 178 throw new UnsupportedError("File._openStdio");
178 } 179 }
179 } 180 }
180 181
181 @patch 182 @patch
183 class _Namespace {
184 @patch
185 static void set _namespace(var namespace) {
186 throw new UnsupportedError("_Namespace");
187 }
188
189 @patch
190 static _Namespace get _namespace {
191 throw new UnsupportedError("_Namespace");
192 }
193
194 @patch
195 static int get _namespacePointer {
196 throw new UnsupportedError("_Namespace");
197 }
198 }
199
200 @patch
182 class _RandomAccessFileOps { 201 class _RandomAccessFileOps {
183 @patch 202 @patch
184 factory _RandomAccessFileOps(int pointer) { 203 factory _RandomAccessFileOps(int pointer) {
185 throw new UnsupportedError("RandomAccessFile"); 204 throw new UnsupportedError("RandomAccessFile");
186 } 205 }
187 } 206 }
188 207
189 @patch 208 @patch
190 class _IOCrypto { 209 class _IOCrypto {
191 @patch 210 @patch
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 } 640 }
622 } 641 }
623 642
624 @patch 643 @patch
625 class _IOService { 644 class _IOService {
626 @patch 645 @patch
627 static Future _dispatch(int request, List data) { 646 static Future _dispatch(int request, List data) {
628 throw new UnsupportedError("_IOService._dispatch"); 647 throw new UnsupportedError("_IOService._dispatch");
629 } 648 }
630 } 649 }
OLDNEW
« 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