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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart

Issue 3007703002: [dart:io] Namespaces for file IO (Closed)
Patch Set: Remove namespace_unsupported.cc 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(_Namespace namespace) {
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(_Namespace namespace) {
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,
52 List<FileSystemEntity> list,
53 String path,
54 bool recursive,
55 bool followLinks) {
52 throw new UnsupportedError("Directory._fillWithDirectoryListing"); 56 throw new UnsupportedError("Directory._fillWithDirectoryListing");
53 } 57 }
54 } 58 }
55 59
56 @patch 60 @patch
57 class _AsyncDirectoryListerOps { 61 class _AsyncDirectoryListerOps {
58 @patch 62 @patch
59 factory _AsyncDirectoryListerOps(int pointer) { 63 factory _AsyncDirectoryListerOps(int pointer) {
60 throw new UnsupportedError("Directory._list"); 64 throw new UnsupportedError("Directory._list");
61 } 65 }
62 } 66 }
63 67
64 @patch 68 @patch
65 class _EventHandler { 69 class _EventHandler {
66 @patch 70 @patch
67 static void _sendData(Object sender, SendPort sendPort, int data) { 71 static void _sendData(Object sender, SendPort sendPort, int data) {
68 throw new UnsupportedError("EventHandler._sendData"); 72 throw new UnsupportedError("EventHandler._sendData");
69 } 73 }
70 } 74 }
71 75
72 @patch 76 @patch
73 class FileStat { 77 class FileStat {
74 @patch 78 @patch
75 static _statSync(String path) { 79 static _statSync(_Namespace namespace, String path) {
76 throw new UnsupportedError("FileStat.stat"); 80 throw new UnsupportedError("FileStat.stat");
77 } 81 }
78 } 82 }
79 83
80 @patch 84 @patch
81 class FileSystemEntity { 85 class FileSystemEntity {
82 @patch 86 @patch
83 static _getType(String path, bool followLinks) { 87 static _getType(_Namespace namespace, String path, bool followLinks) {
84 throw new UnsupportedError("FileSystemEntity._getType"); 88 throw new UnsupportedError("FileSystemEntity._getType");
85 } 89 }
86 90
87 @patch 91 @patch
88 static _identical(String path1, String path2) { 92 static _identical(_Namespace namespace, String path1, String path2) {
89 throw new UnsupportedError("FileSystemEntity._identical"); 93 throw new UnsupportedError("FileSystemEntity._identical");
90 } 94 }
91 95
92 @patch 96 @patch
93 static _resolveSymbolicLinks(String path) { 97 static _resolveSymbolicLinks(_Namespace namespace, String path) {
94 throw new UnsupportedError("FileSystemEntity._resolveSymbolicLinks"); 98 throw new UnsupportedError("FileSystemEntity._resolveSymbolicLinks");
95 } 99 }
96 } 100 }
97 101
98 @patch 102 @patch
99 class _File { 103 class _File {
100 @patch 104 @patch
101 static _exists(String path) { 105 static _exists(_Namespace namespace, String path) {
102 throw new UnsupportedError("File._exists"); 106 throw new UnsupportedError("File._exists");
103 } 107 }
104 108
105 @patch 109 @patch
106 static _create(String path) { 110 static _create(_Namespace namespace, String path) {
107 throw new UnsupportedError("File._create"); 111 throw new UnsupportedError("File._create");
108 } 112 }
109 113
110 @patch 114 @patch
111 static _createLink(String path, String target) { 115 static _createLink(_Namespace namespace, String path, String target) {
112 throw new UnsupportedError("File._createLink"); 116 throw new UnsupportedError("File._createLink");
113 } 117 }
114 118
115 @patch 119 @patch
116 static _linkTarget(String path) { 120 static _linkTarget(_Namespace namespace, String path) {
117 throw new UnsupportedError("File._linkTarget"); 121 throw new UnsupportedError("File._linkTarget");
118 } 122 }
119 123
120 @patch 124 @patch
121 static _deleteNative(String path) { 125 static _deleteNative(_Namespace namespace, String path) {
122 throw new UnsupportedError("File._deleteNative"); 126 throw new UnsupportedError("File._deleteNative");
123 } 127 }
124 128
125 @patch 129 @patch
126 static _deleteLinkNative(String path) { 130 static _deleteLinkNative(_Namespace namespace, String path) {
127 throw new UnsupportedError("File._deleteLinkNative"); 131 throw new UnsupportedError("File._deleteLinkNative");
128 } 132 }
129 133
130 @patch 134 @patch
131 static _rename(String oldPath, String newPath) { 135 static _rename(_Namespace namespace, String oldPath, String newPath) {
132 throw new UnsupportedError("File._rename"); 136 throw new UnsupportedError("File._rename");
133 } 137 }
134 138
135 @patch 139 @patch
136 static _renameLink(String oldPath, String newPath) { 140 static _renameLink(_Namespace namespace, String oldPath, String newPath) {
137 throw new UnsupportedError("File._renameLink"); 141 throw new UnsupportedError("File._renameLink");
138 } 142 }
139 143
140 @patch 144 @patch
141 static _copy(String oldPath, String newPath) { 145 static _copy(_Namespace namespace, String oldPath, String newPath) {
142 throw new UnsupportedError("File._copy"); 146 throw new UnsupportedError("File._copy");
143 } 147 }
144 148
145 @patch 149 @patch
146 static _lengthFromPath(String path) { 150 static _lengthFromPath(_Namespace namespace, String path) {
147 throw new UnsupportedError("File._lengthFromPath"); 151 throw new UnsupportedError("File._lengthFromPath");
148 } 152 }
149 153
150 @patch 154 @patch
151 static _lastModified(String path) { 155 static _lastModified(_Namespace namespace, String path) {
152 throw new UnsupportedError("File._lastModified"); 156 throw new UnsupportedError("File._lastModified");
153 } 157 }
154 158
155 @patch 159 @patch
156 static _lastAccessed(String path) { 160 static _lastAccessed(_Namespace namespace, String path) {
157 throw new UnsupportedError("File._lastAccessed"); 161 throw new UnsupportedError("File._lastAccessed");
158 } 162 }
159 163
160 @patch 164 @patch
161 static _setLastModified(String path, int millis) { 165 static _setLastModified(_Namespace namespace, String path, int millis) {
162 throw new UnsupportedError("File._setLastModified"); 166 throw new UnsupportedError("File._setLastModified");
163 } 167 }
164 168
165 @patch 169 @patch
166 static _setLastAccessed(String path, int millis) { 170 static _setLastAccessed(_Namespace namespace, String path, int millis) {
167 throw new UnsupportedError("File._setLastAccessed"); 171 throw new UnsupportedError("File._setLastAccessed");
168 } 172 }
169 173
170 @patch 174 @patch
171 static _open(String path, int mode) { 175 static _open(_Namespace namespace, String path, int mode) {
172 throw new UnsupportedError("File._open"); 176 throw new UnsupportedError("File._open");
173 } 177 }
174 178
175 @patch 179 @patch
176 static int _openStdio(int fd) { 180 static int _openStdio(int fd) {
177 throw new UnsupportedError("File._openStdio"); 181 throw new UnsupportedError("File._openStdio");
178 } 182 }
179 } 183 }
180 184
181 @patch 185 @patch
186 class _Namespace {
187 @patch
188 static void _setupNamespace(var namespace) {
189 throw new UnsupportedError("_Namespace");
190 }
191
192 @patch
193 static _Namespace get _namespace {
194 throw new UnsupportedError("_Namespace");
195 }
196
197 @patch
198 static int get _namespacePointer {
199 throw new UnsupportedError("_Namespace");
200 }
201 }
202
203 @patch
182 class _RandomAccessFileOps { 204 class _RandomAccessFileOps {
183 @patch 205 @patch
184 factory _RandomAccessFileOps(int pointer) { 206 factory _RandomAccessFileOps(int pointer) {
185 throw new UnsupportedError("RandomAccessFile"); 207 throw new UnsupportedError("RandomAccessFile");
186 } 208 }
187 } 209 }
188 210
189 @patch 211 @patch
190 class _IOCrypto { 212 class _IOCrypto {
191 @patch 213 @patch
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 } 643 }
622 } 644 }
623 645
624 @patch 646 @patch
625 class _IOService { 647 class _IOService {
626 @patch 648 @patch
627 static Future _dispatch(int request, List data) { 649 static Future _dispatch(int request, List data) {
628 throw new UnsupportedError("_IOService._dispatch"); 650 throw new UnsupportedError("_IOService._dispatch");
629 } 651 }
630 } 652 }
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