OLD | NEW |
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 @patch | 14 @patch |
14 static _setCurrent(path) { | 15 static _setCurrent(path) { |
15 throw new UnsupportedError("Directory_SetCurrent"); | 16 throw new UnsupportedError("Directory_SetCurrent"); |
16 } | 17 } |
| 18 |
17 @patch | 19 @patch |
18 static _createTemp(String path) { | 20 static _createTemp(String path) { |
19 throw new UnsupportedError("Directory._createTemp"); | 21 throw new UnsupportedError("Directory._createTemp"); |
20 } | 22 } |
| 23 |
21 @patch | 24 @patch |
22 static String _systemTemp() { | 25 static String _systemTemp() { |
23 throw new UnsupportedError("Directory._systemTemp"); | 26 throw new UnsupportedError("Directory._systemTemp"); |
24 } | 27 } |
| 28 |
25 @patch | 29 @patch |
26 static _exists(String path) { | 30 static _exists(String path) { |
27 throw new UnsupportedError("Directory._exists"); | 31 throw new UnsupportedError("Directory._exists"); |
28 } | 32 } |
| 33 |
29 @patch | 34 @patch |
30 static _create(String path) { | 35 static _create(String path) { |
31 throw new UnsupportedError("Directory._create"); | 36 throw new UnsupportedError("Directory._create"); |
32 } | 37 } |
| 38 |
33 @patch | 39 @patch |
34 static _deleteNative(String path, bool recursive) { | 40 static _deleteNative(String path, bool recursive) { |
35 throw new UnsupportedError("Directory._deleteNative"); | 41 throw new UnsupportedError("Directory._deleteNative"); |
36 } | 42 } |
| 43 |
37 @patch | 44 @patch |
38 static _rename(String path, String newPath) { | 45 static _rename(String path, String newPath) { |
39 throw new UnsupportedError("Directory._rename"); | 46 throw new UnsupportedError("Directory._rename"); |
40 } | 47 } |
| 48 |
41 @patch | 49 @patch |
42 static void _fillWithDirectoryListing( | 50 static void _fillWithDirectoryListing(List<FileSystemEntity> list, |
43 List<FileSystemEntity> list, String path, bool recursive, | 51 String path, bool recursive, bool followLinks) { |
44 bool followLinks) { | |
45 throw new UnsupportedError("Directory._fillWithDirectoryListing"); | 52 throw new UnsupportedError("Directory._fillWithDirectoryListing"); |
46 } | 53 } |
47 } | 54 } |
48 | 55 |
49 @patch | 56 @patch |
50 class _AsyncDirectoryListerOps { | 57 class _AsyncDirectoryListerOps { |
51 @patch | 58 @patch |
52 factory _AsyncDirectoryListerOps(int pointer) { | 59 factory _AsyncDirectoryListerOps(int pointer) { |
53 throw new UnsupportedError("Directory._list"); | 60 throw new UnsupportedError("Directory._list"); |
54 } | 61 } |
55 } | 62 } |
56 | 63 |
57 @patch | 64 @patch |
58 class _EventHandler { | 65 class _EventHandler { |
59 @patch | 66 @patch |
60 static void _sendData(Object sender, | 67 static void _sendData(Object sender, SendPort sendPort, int data) { |
61 SendPort sendPort, | |
62 int data) { | |
63 throw new UnsupportedError("EventHandler._sendData"); | 68 throw new UnsupportedError("EventHandler._sendData"); |
64 } | 69 } |
65 } | 70 } |
66 | 71 |
67 @patch | 72 @patch |
68 class FileStat { | 73 class FileStat { |
69 @patch | 74 @patch |
70 static _statSync(String path) { | 75 static _statSync(String path) { |
71 throw new UnsupportedError("FileStat.stat"); | 76 throw new UnsupportedError("FileStat.stat"); |
72 } | 77 } |
73 } | 78 } |
74 | 79 |
75 @patch | 80 @patch |
76 class FileSystemEntity { | 81 class FileSystemEntity { |
77 @patch | 82 @patch |
78 static _getType(String path, bool followLinks) { | 83 static _getType(String path, bool followLinks) { |
79 throw new UnsupportedError("FileSystemEntity._getType"); | 84 throw new UnsupportedError("FileSystemEntity._getType"); |
80 } | 85 } |
| 86 |
81 @patch | 87 @patch |
82 static _identical(String path1, String path2) { | 88 static _identical(String path1, String path2) { |
83 throw new UnsupportedError("FileSystemEntity._identical"); | 89 throw new UnsupportedError("FileSystemEntity._identical"); |
84 } | 90 } |
| 91 |
85 @patch | 92 @patch |
86 static _resolveSymbolicLinks(String path) { | 93 static _resolveSymbolicLinks(String path) { |
87 throw new UnsupportedError("FileSystemEntity._resolveSymbolicLinks"); | 94 throw new UnsupportedError("FileSystemEntity._resolveSymbolicLinks"); |
88 } | 95 } |
89 } | 96 } |
90 | 97 |
91 @patch | 98 @patch |
92 class _File { | 99 class _File { |
93 @patch | 100 @patch |
94 static _exists(String path) { | 101 static _exists(String path) { |
95 throw new UnsupportedError("File._exists"); | 102 throw new UnsupportedError("File._exists"); |
96 } | 103 } |
| 104 |
97 @patch | 105 @patch |
98 static _create(String path) { | 106 static _create(String path) { |
99 throw new UnsupportedError("File._create"); | 107 throw new UnsupportedError("File._create"); |
100 } | 108 } |
| 109 |
101 @patch | 110 @patch |
102 static _createLink(String path, String target) { | 111 static _createLink(String path, String target) { |
103 throw new UnsupportedError("File._createLink"); | 112 throw new UnsupportedError("File._createLink"); |
104 } | 113 } |
| 114 |
105 @patch | 115 @patch |
106 static _linkTarget(String path) { | 116 static _linkTarget(String path) { |
107 throw new UnsupportedError("File._linkTarget"); | 117 throw new UnsupportedError("File._linkTarget"); |
108 } | 118 } |
| 119 |
109 @patch | 120 @patch |
110 static _deleteNative(String path) { | 121 static _deleteNative(String path) { |
111 throw new UnsupportedError("File._deleteNative"); | 122 throw new UnsupportedError("File._deleteNative"); |
112 } | 123 } |
| 124 |
113 @patch | 125 @patch |
114 static _deleteLinkNative(String path) { | 126 static _deleteLinkNative(String path) { |
115 throw new UnsupportedError("File._deleteLinkNative"); | 127 throw new UnsupportedError("File._deleteLinkNative"); |
116 } | 128 } |
| 129 |
117 @patch | 130 @patch |
118 static _rename(String oldPath, String newPath) { | 131 static _rename(String oldPath, String newPath) { |
119 throw new UnsupportedError("File._rename"); | 132 throw new UnsupportedError("File._rename"); |
120 } | 133 } |
| 134 |
121 @patch | 135 @patch |
122 static _renameLink(String oldPath, String newPath) { | 136 static _renameLink(String oldPath, String newPath) { |
123 throw new UnsupportedError("File._renameLink"); | 137 throw new UnsupportedError("File._renameLink"); |
124 } | 138 } |
| 139 |
125 @patch | 140 @patch |
126 static _copy(String oldPath, String newPath) { | 141 static _copy(String oldPath, String newPath) { |
127 throw new UnsupportedError("File._copy"); | 142 throw new UnsupportedError("File._copy"); |
128 } | 143 } |
| 144 |
129 @patch | 145 @patch |
130 static _lengthFromPath(String path) { | 146 static _lengthFromPath(String path) { |
131 throw new UnsupportedError("File._lengthFromPath"); | 147 throw new UnsupportedError("File._lengthFromPath"); |
132 } | 148 } |
| 149 |
133 @patch | 150 @patch |
134 static _lastModified(String path) { | 151 static _lastModified(String path) { |
135 throw new UnsupportedError("File._lastModified"); | 152 throw new UnsupportedError("File._lastModified"); |
136 } | 153 } |
| 154 |
137 @patch | 155 @patch |
138 static _lastAccessed(String path) { | 156 static _lastAccessed(String path) { |
139 throw new UnsupportedError("File._lastAccessed"); | 157 throw new UnsupportedError("File._lastAccessed"); |
140 } | 158 } |
| 159 |
141 @patch | 160 @patch |
142 static _setLastModified(String path, int millis) { | 161 static _setLastModified(String path, int millis) { |
143 throw new UnsupportedError("File._setLastModified"); | 162 throw new UnsupportedError("File._setLastModified"); |
144 } | 163 } |
| 164 |
145 @patch | 165 @patch |
146 static _setLastAccessed(String path, int millis) { | 166 static _setLastAccessed(String path, int millis) { |
147 throw new UnsupportedError("File._setLastAccessed"); | 167 throw new UnsupportedError("File._setLastAccessed"); |
148 } | 168 } |
| 169 |
149 @patch | 170 @patch |
150 static _open(String path, int mode) { | 171 static _open(String path, int mode) { |
151 throw new UnsupportedError("File._open"); | 172 throw new UnsupportedError("File._open"); |
152 } | 173 } |
| 174 |
153 @patch | 175 @patch |
154 static int _openStdio(int fd) { | 176 static int _openStdio(int fd) { |
155 throw new UnsupportedError("File._openStdio"); | 177 throw new UnsupportedError("File._openStdio"); |
156 } | 178 } |
157 } | 179 } |
158 | 180 |
159 @patch | 181 @patch |
160 class _RandomAccessFileOps { | 182 class _RandomAccessFileOps { |
161 @patch | 183 @patch |
162 factory _RandomAccessFileOps(int pointer) { | 184 factory _RandomAccessFileOps(int pointer) { |
163 throw new UnsupportedError("RandomAccessFile"); | 185 throw new UnsupportedError("RandomAccessFile"); |
164 } | 186 } |
165 } | 187 } |
166 | 188 |
167 @patch | 189 @patch |
168 class _IOCrypto { | 190 class _IOCrypto { |
169 @patch | 191 @patch |
170 static Uint8List getRandomBytes(int count) { | 192 static Uint8List getRandomBytes(int count) { |
171 throw new UnsupportedError("_IOCrypto.getRandomBytes"); | 193 throw new UnsupportedError("_IOCrypto.getRandomBytes"); |
172 } | 194 } |
173 } | 195 } |
174 | 196 |
175 @patch | 197 @patch |
176 class _Platform { | 198 class _Platform { |
177 @patch | 199 @patch |
178 static int _numberOfProcessors() { | 200 static int _numberOfProcessors() { |
179 throw new UnsupportedError("Platform._numberOfProcessors"); | 201 throw new UnsupportedError("Platform._numberOfProcessors"); |
180 } | 202 } |
| 203 |
181 @patch | 204 @patch |
182 static String _pathSeparator() { | 205 static String _pathSeparator() { |
183 throw new UnsupportedError("Platform._pathSeparator"); | 206 throw new UnsupportedError("Platform._pathSeparator"); |
184 } | 207 } |
| 208 |
185 @patch | 209 @patch |
186 static String _operatingSystem() { | 210 static String _operatingSystem() { |
187 throw new UnsupportedError("Platform._operatingSystem"); | 211 throw new UnsupportedError("Platform._operatingSystem"); |
188 } | 212 } |
| 213 |
189 @patch | 214 @patch |
190 static _localHostname() { | 215 static _localHostname() { |
191 throw new UnsupportedError("Platform._localHostname"); | 216 throw new UnsupportedError("Platform._localHostname"); |
192 } | 217 } |
| 218 |
193 @patch | 219 @patch |
194 static _executable() { | 220 static _executable() { |
195 throw new UnsupportedError("Platform._executable"); | 221 throw new UnsupportedError("Platform._executable"); |
196 } | 222 } |
| 223 |
197 @patch | 224 @patch |
198 static _resolvedExecutable() { | 225 static _resolvedExecutable() { |
199 throw new UnsupportedError("Platform._resolvedExecutable"); | 226 throw new UnsupportedError("Platform._resolvedExecutable"); |
200 } | 227 } |
| 228 |
201 @patch | 229 @patch |
202 static List<String> _executableArguments() { | 230 static List<String> _executableArguments() { |
203 throw new UnsupportedError("Platform._executableArguments"); | 231 throw new UnsupportedError("Platform._executableArguments"); |
204 } | 232 } |
| 233 |
205 @patch | 234 @patch |
206 static String _packageRoot() { | 235 static String _packageRoot() { |
207 throw new UnsupportedError("Platform._packageRoot"); | 236 throw new UnsupportedError("Platform._packageRoot"); |
208 } | 237 } |
| 238 |
209 @patch | 239 @patch |
210 static String _packageConfig() { | 240 static String _packageConfig() { |
211 throw new UnsupportedError("Platform._packageConfig"); | 241 throw new UnsupportedError("Platform._packageConfig"); |
212 } | 242 } |
| 243 |
213 @patch | 244 @patch |
214 static _environment() { | 245 static _environment() { |
215 throw new UnsupportedError("Platform._environment"); | 246 throw new UnsupportedError("Platform._environment"); |
216 } | 247 } |
| 248 |
217 @patch | 249 @patch |
218 static String _version() { | 250 static String _version() { |
219 throw new UnsupportedError("Platform._version"); | 251 throw new UnsupportedError("Platform._version"); |
220 } | 252 } |
| 253 |
221 @patch | 254 @patch |
222 static _ansiSupported() { | 255 static _ansiSupported() { |
223 throw new UnsupportedError("Platform._ansiSupported"); | 256 throw new UnsupportedError("Platform._ansiSupported"); |
224 } | 257 } |
225 } | 258 } |
226 | 259 |
227 @patch | 260 @patch |
228 class _ProcessUtils { | 261 class _ProcessUtils { |
229 @patch | 262 @patch |
230 static void _exit(int status) { | 263 static void _exit(int status) { |
231 throw new UnsupportedError("ProcessUtils._exit"); | 264 throw new UnsupportedError("ProcessUtils._exit"); |
232 } | 265 } |
| 266 |
233 @patch | 267 @patch |
234 static void _setExitCode(int status) { | 268 static void _setExitCode(int status) { |
235 throw new UnsupportedError("ProcessUtils._setExitCode"); | 269 throw new UnsupportedError("ProcessUtils._setExitCode"); |
236 } | 270 } |
| 271 |
237 @patch | 272 @patch |
238 static int _getExitCode() { | 273 static int _getExitCode() { |
239 throw new UnsupportedError("ProcessUtils._getExitCode"); | 274 throw new UnsupportedError("ProcessUtils._getExitCode"); |
240 } | 275 } |
| 276 |
241 @patch | 277 @patch |
242 static void _sleep(int millis) { | 278 static void _sleep(int millis) { |
243 throw new UnsupportedError("ProcessUtils._sleep"); | 279 throw new UnsupportedError("ProcessUtils._sleep"); |
244 } | 280 } |
| 281 |
245 @patch | 282 @patch |
246 static int _pid(Process process) { | 283 static int _pid(Process process) { |
247 throw new UnsupportedError("ProcessUtils._pid"); | 284 throw new UnsupportedError("ProcessUtils._pid"); |
248 } | 285 } |
| 286 |
249 @patch | 287 @patch |
250 static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { | 288 static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { |
251 throw new UnsupportedError("ProcessUtils._watchSignal"); | 289 throw new UnsupportedError("ProcessUtils._watchSignal"); |
252 } | 290 } |
253 } | 291 } |
254 | 292 |
255 @patch | 293 @patch |
256 class Process { | 294 class Process { |
257 @patch | 295 @patch |
258 static Future<Process> start( | 296 static Future<Process> start(String executable, List<String> arguments, |
259 String executable, | |
260 List<String> arguments, | |
261 {String workingDirectory, | 297 {String workingDirectory, |
262 Map<String, String> environment, | 298 Map<String, String> environment, |
263 bool includeParentEnvironment: true, | 299 bool includeParentEnvironment: true, |
264 bool runInShell: false, | 300 bool runInShell: false, |
265 ProcessStartMode mode: ProcessStartMode.NORMAL}) { | 301 ProcessStartMode mode: ProcessStartMode.NORMAL}) { |
266 throw new UnsupportedError("Process.start"); | 302 throw new UnsupportedError("Process.start"); |
267 } | 303 } |
268 | 304 |
269 @patch | 305 @patch |
270 static Future<ProcessResult> run( | 306 static Future<ProcessResult> run(String executable, List<String> arguments, |
271 String executable, | |
272 List<String> arguments, | |
273 {String workingDirectory, | 307 {String workingDirectory, |
274 Map<String, String> environment, | 308 Map<String, String> environment, |
275 bool includeParentEnvironment: true, | 309 bool includeParentEnvironment: true, |
276 bool runInShell: false, | 310 bool runInShell: false, |
277 Encoding stdoutEncoding: SYSTEM_ENCODING, | 311 Encoding stdoutEncoding: SYSTEM_ENCODING, |
278 Encoding stderrEncoding: SYSTEM_ENCODING}) { | 312 Encoding stderrEncoding: SYSTEM_ENCODING}) { |
279 throw new UnsupportedError("Process.run"); | 313 throw new UnsupportedError("Process.run"); |
280 } | 314 } |
281 | 315 |
282 @patch | 316 @patch |
283 static ProcessResult runSync( | 317 static ProcessResult runSync(String executable, List<String> arguments, |
284 String executable, | |
285 List<String> arguments, | |
286 {String workingDirectory, | 318 {String workingDirectory, |
287 Map<String, String> environment, | 319 Map<String, String> environment, |
288 bool includeParentEnvironment: true, | 320 bool includeParentEnvironment: true, |
289 bool runInShell: false, | 321 bool runInShell: false, |
290 Encoding stdoutEncoding: SYSTEM_ENCODING, | 322 Encoding stdoutEncoding: SYSTEM_ENCODING, |
291 Encoding stderrEncoding: SYSTEM_ENCODING}) { | 323 Encoding stderrEncoding: SYSTEM_ENCODING}) { |
292 throw new UnsupportedError("Process.runSync"); | 324 throw new UnsupportedError("Process.runSync"); |
293 } | 325 } |
294 | 326 |
295 @patch | 327 @patch |
296 static bool killPid( | 328 static bool killPid(int pid, [ProcessSignal signal = ProcessSignal.SIGTERM]) { |
297 int pid, [ProcessSignal signal = ProcessSignal.SIGTERM]) { | |
298 throw new UnsupportedError("Process.killPid"); | 329 throw new UnsupportedError("Process.killPid"); |
299 } | 330 } |
300 } | 331 } |
301 | 332 |
302 @patch | 333 @patch |
303 class InternetAddress { | 334 class InternetAddress { |
304 @patch | 335 @patch |
305 static InternetAddress get LOOPBACK_IP_V4 { | 336 static InternetAddress get LOOPBACK_IP_V4 { |
306 throw new UnsupportedError("InternetAddress.LOOPBACK_IP_V4"); | 337 throw new UnsupportedError("InternetAddress.LOOPBACK_IP_V4"); |
307 } | 338 } |
| 339 |
308 @patch | 340 @patch |
309 static InternetAddress get LOOPBACK_IP_V6 { | 341 static InternetAddress get LOOPBACK_IP_V6 { |
310 throw new UnsupportedError("InternetAddress.LOOPBACK_IP_V6"); | 342 throw new UnsupportedError("InternetAddress.LOOPBACK_IP_V6"); |
311 } | 343 } |
| 344 |
312 @patch | 345 @patch |
313 static InternetAddress get ANY_IP_V4 { | 346 static InternetAddress get ANY_IP_V4 { |
314 throw new UnsupportedError("InternetAddress.ANY_IP_V4"); | 347 throw new UnsupportedError("InternetAddress.ANY_IP_V4"); |
315 } | 348 } |
| 349 |
316 @patch | 350 @patch |
317 static InternetAddress get ANY_IP_V6 { | 351 static InternetAddress get ANY_IP_V6 { |
318 throw new UnsupportedError("InternetAddress.ANY_IP_V6"); | 352 throw new UnsupportedError("InternetAddress.ANY_IP_V6"); |
319 } | 353 } |
| 354 |
320 @patch | 355 @patch |
321 factory InternetAddress(String address) { | 356 factory InternetAddress(String address) { |
322 throw new UnsupportedError("InternetAddress"); | 357 throw new UnsupportedError("InternetAddress"); |
323 } | 358 } |
324 @patch | 359 @patch |
325 static Future<List<InternetAddress>> lookup( | 360 static Future<List<InternetAddress>> lookup(String host, |
326 String host, {InternetAddressType type: InternetAddressType.ANY}) { | 361 {InternetAddressType type: InternetAddressType.ANY}) { |
327 throw new UnsupportedError("InternetAddress.lookup"); | 362 throw new UnsupportedError("InternetAddress.lookup"); |
328 } | 363 } |
| 364 |
329 @patch | 365 @patch |
330 static InternetAddress _cloneWithNewHost( | 366 static InternetAddress _cloneWithNewHost( |
331 InternetAddress address, String host) { | 367 InternetAddress address, String host) { |
332 throw new UnsupportedError("InternetAddress._cloneWithNewHost"); | 368 throw new UnsupportedError("InternetAddress._cloneWithNewHost"); |
333 } | 369 } |
334 } | 370 } |
335 | 371 |
336 @patch | 372 @patch |
337 class NetworkInterface { | 373 class NetworkInterface { |
338 @patch | 374 @patch |
339 static bool get listSupported { | 375 static bool get listSupported { |
340 throw new UnsupportedError("NetworkInterface.listSupported"); | 376 throw new UnsupportedError("NetworkInterface.listSupported"); |
341 } | 377 } |
| 378 |
342 @patch | 379 @patch |
343 static Future<List<NetworkInterface>> list({ | 380 static Future<List<NetworkInterface>> list( |
344 bool includeLoopback: false, | 381 {bool includeLoopback: false, |
345 bool includeLinkLocal: false, | 382 bool includeLinkLocal: false, |
346 InternetAddressType type: InternetAddressType.ANY}) { | 383 InternetAddressType type: InternetAddressType.ANY}) { |
347 throw new UnsupportedError("NetworkInterface.list"); | 384 throw new UnsupportedError("NetworkInterface.list"); |
348 } | 385 } |
349 } | 386 } |
350 | 387 |
351 @patch | 388 @patch |
352 class RawServerSocket { | 389 class RawServerSocket { |
353 @patch | 390 @patch |
354 static Future<RawServerSocket> bind(address, | 391 static Future<RawServerSocket> bind(address, int port, |
355 int port, | 392 {int backlog: 0, bool v6Only: false, bool shared: false}) { |
356 {int backlog: 0, | |
357 bool v6Only: false, | |
358 bool shared: false}) { | |
359 throw new UnsupportedError("RawServerSocket.bind"); | 393 throw new UnsupportedError("RawServerSocket.bind"); |
360 } | 394 } |
361 } | 395 } |
362 | 396 |
363 @patch | 397 @patch |
364 class ServerSocket { | 398 class ServerSocket { |
365 @patch | 399 @patch |
366 static Future<ServerSocket> bind(address, | 400 static Future<ServerSocket> bind(address, int port, |
367 int port, | 401 {int backlog: 0, bool v6Only: false, bool shared: false}) { |
368 {int backlog: 0, | |
369 bool v6Only: false, | |
370 bool shared: false}) { | |
371 throw new UnsupportedError("ServerSocket.bind"); | 402 throw new UnsupportedError("ServerSocket.bind"); |
372 } | 403 } |
373 } | 404 } |
374 | 405 |
375 @patch | 406 @patch |
376 class RawSocket { | 407 class RawSocket { |
377 @patch | 408 @patch |
378 static Future<RawSocket> connect(host, int port, {sourceAddress}) { | 409 static Future<RawSocket> connect(host, int port, {sourceAddress}) { |
379 throw new UnsupportedError("RawSocket constructor"); | 410 throw new UnsupportedError("RawSocket constructor"); |
380 } | 411 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 class X509Certificate { | 449 class X509Certificate { |
419 @patch | 450 @patch |
420 factory X509Certificate._() { | 451 factory X509Certificate._() { |
421 throw new UnsupportedError("X509Certificate constructor"); | 452 throw new UnsupportedError("X509Certificate constructor"); |
422 } | 453 } |
423 } | 454 } |
424 | 455 |
425 @patch | 456 @patch |
426 class RawDatagramSocket { | 457 class RawDatagramSocket { |
427 @patch | 458 @patch |
428 static Future<RawDatagramSocket> bind( | 459 static Future<RawDatagramSocket> bind(host, int port, |
429 host, int port, {bool reuseAddress: true}) { | 460 {bool reuseAddress: true}) { |
430 throw new UnsupportedError("RawDatagramSocket.bind"); | 461 throw new UnsupportedError("RawDatagramSocket.bind"); |
431 } | 462 } |
432 } | 463 } |
433 | 464 |
434 @patch | 465 @patch |
435 class _SecureFilter { | 466 class _SecureFilter { |
436 @patch | 467 @patch |
437 factory _SecureFilter() { | 468 factory _SecureFilter() { |
438 throw new UnsupportedError("_SecureFilter._SecureFilter"); | 469 throw new UnsupportedError("_SecureFilter._SecureFilter"); |
439 } | 470 } |
440 } | 471 } |
441 | 472 |
442 @patch | 473 @patch |
443 class _StdIOUtils { | 474 class _StdIOUtils { |
444 @patch | 475 @patch |
445 static Stdin _getStdioInputStream() { | 476 static Stdin _getStdioInputStream() { |
446 throw new UnsupportedError("StdIOUtils._getStdioInputStream"); | 477 throw new UnsupportedError("StdIOUtils._getStdioInputStream"); |
447 } | 478 } |
| 479 |
448 @patch | 480 @patch |
449 static _getStdioOutputStream(int fd) { | 481 static _getStdioOutputStream(int fd) { |
450 throw new UnsupportedError("StdIOUtils._getStdioOutputStream"); | 482 throw new UnsupportedError("StdIOUtils._getStdioOutputStream"); |
451 } | 483 } |
| 484 |
452 @patch | 485 @patch |
453 static int _socketType(Socket socket) { | 486 static int _socketType(Socket socket) { |
454 throw new UnsupportedError("StdIOUtils._socketType"); | 487 throw new UnsupportedError("StdIOUtils._socketType"); |
455 } | 488 } |
| 489 |
456 @patch | 490 @patch |
457 static _getStdioHandleType(int fd) { | 491 static _getStdioHandleType(int fd) { |
458 throw new UnsupportedError("StdIOUtils._getStdioHandleType"); | 492 throw new UnsupportedError("StdIOUtils._getStdioHandleType"); |
459 } | 493 } |
460 } | 494 } |
461 | 495 |
462 @patch | 496 @patch |
463 class _WindowsCodePageDecoder { | 497 class _WindowsCodePageDecoder { |
464 @patch | 498 @patch |
465 static String _decodeBytes(List<int> bytes) { | 499 static String _decodeBytes(List<int> bytes) { |
466 throw new UnsupportedError("_WindowsCodePageDecoder._decodeBytes"); | 500 throw new UnsupportedError("_WindowsCodePageDecoder._decodeBytes"); |
467 } | 501 } |
468 } | 502 } |
469 | 503 |
470 @patch | 504 @patch |
471 class _WindowsCodePageEncoder { | 505 class _WindowsCodePageEncoder { |
472 @patch | 506 @patch |
473 static List<int> _encodeString(String string) { | 507 static List<int> _encodeString(String string) { |
474 throw new UnsupportedError("_WindowsCodePageEncoder._encodeString"); | 508 throw new UnsupportedError("_WindowsCodePageEncoder._encodeString"); |
475 } | 509 } |
476 } | 510 } |
477 | 511 |
478 @patch | 512 @patch |
479 class _Filter { | 513 class _Filter { |
480 @patch | 514 @patch |
481 static _Filter _newZLibDeflateFilter(bool gzip, int level, | 515 static _Filter _newZLibDeflateFilter(bool gzip, int level, int windowBits, |
482 int windowBits, int memLevel, | 516 int memLevel, int strategy, List<int> dictionary, bool raw) { |
483 int strategy, | |
484 List<int> dictionary, bool raw) { | |
485 throw new UnsupportedError("_newZLibDeflateFilter"); | 517 throw new UnsupportedError("_newZLibDeflateFilter"); |
486 } | 518 } |
| 519 |
487 @patch | 520 @patch |
488 static _Filter _newZLibInflateFilter(int windowBits, | 521 static _Filter _newZLibInflateFilter( |
489 List<int> dictionary, bool raw) { | 522 int windowBits, List<int> dictionary, bool raw) { |
490 throw new UnsupportedError("_newZLibInflateFilter"); | 523 throw new UnsupportedError("_newZLibInflateFilter"); |
491 } | 524 } |
492 } | 525 } |
493 | 526 |
494 @patch | 527 @patch |
495 class Stdin { | 528 class Stdin { |
496 @patch | 529 @patch |
497 int readByteSync() { | 530 int readByteSync() { |
498 throw new UnsupportedError("Stdin.readByteSync"); | 531 throw new UnsupportedError("Stdin.readByteSync"); |
499 } | 532 } |
| 533 |
500 @patch | 534 @patch |
501 bool get echoMode { | 535 bool get echoMode { |
502 throw new UnsupportedError("Stdin.echoMode"); | 536 throw new UnsupportedError("Stdin.echoMode"); |
503 } | 537 } |
| 538 |
504 @patch | 539 @patch |
505 void set echoMode(bool enabled) { | 540 void set echoMode(bool enabled) { |
506 throw new UnsupportedError("Stdin.echoMode"); | 541 throw new UnsupportedError("Stdin.echoMode"); |
507 } | 542 } |
| 543 |
508 @patch | 544 @patch |
509 bool get lineMode { | 545 bool get lineMode { |
510 throw new UnsupportedError("Stdin.lineMode"); | 546 throw new UnsupportedError("Stdin.lineMode"); |
511 } | 547 } |
| 548 |
512 @patch | 549 @patch |
513 void set lineMode(bool enabled) { | 550 void set lineMode(bool enabled) { |
514 throw new UnsupportedError("Stdin.lineMode"); | 551 throw new UnsupportedError("Stdin.lineMode"); |
515 } | 552 } |
516 } | 553 } |
517 | 554 |
518 @patch | 555 @patch |
519 class Stdout { | 556 class Stdout { |
520 @patch | 557 @patch |
521 bool _hasTerminal(int fd) { | 558 bool _hasTerminal(int fd) { |
522 throw new UnsupportedError("Stdout.hasTerminal"); | 559 throw new UnsupportedError("Stdout.hasTerminal"); |
523 } | 560 } |
| 561 |
524 @patch | 562 @patch |
525 int _terminalColumns(int fd) { | 563 int _terminalColumns(int fd) { |
526 throw new UnsupportedError("Stdout.terminalColumns"); | 564 throw new UnsupportedError("Stdout.terminalColumns"); |
527 } | 565 } |
| 566 |
528 @patch | 567 @patch |
529 int _terminalLines(int fd) { | 568 int _terminalLines(int fd) { |
530 throw new UnsupportedError("Stdout.terminalLines"); | 569 throw new UnsupportedError("Stdout.terminalLines"); |
531 } | 570 } |
532 } | 571 } |
533 | 572 |
534 @patch | 573 @patch |
535 class _FileSystemWatcher { | 574 class _FileSystemWatcher { |
536 @patch | 575 @patch |
537 static Stream<FileSystemEvent> _watch( | 576 static Stream<FileSystemEvent> _watch( |
538 String path, int events, bool recursive) { | 577 String path, int events, bool recursive) { |
539 throw new UnsupportedError("_FileSystemWatcher.watch"); | 578 throw new UnsupportedError("_FileSystemWatcher.watch"); |
540 } | 579 } |
| 580 |
541 @patch | 581 @patch |
542 static bool get isSupported { | 582 static bool get isSupported { |
543 throw new UnsupportedError("_FileSystemWatcher.isSupported"); | 583 throw new UnsupportedError("_FileSystemWatcher.isSupported"); |
544 } | 584 } |
545 } | 585 } |
546 | 586 |
547 @patch | 587 @patch |
548 class _IOService { | 588 class _IOService { |
549 @patch | 589 @patch |
550 static Future _dispatch(int request, List data) { | 590 static Future _dispatch(int request, List data) { |
551 throw new UnsupportedError("_IOService._dispatch"); | 591 throw new UnsupportedError("_IOService._dispatch"); |
552 } | 592 } |
553 } | 593 } |
OLD | NEW |