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

Side by Side Diff: sdk/lib/_internal/js_runtime/lib/io_patch.dart

Issue 1904553006: Fix strong mode errors in dart:io. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Minor changes. Created 4 years, 7 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
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() {
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 @patch 33 @patch
34 static _deleteNative(String path, bool recursive) { 34 static _deleteNative(String path, bool recursive) {
35 throw new UnsupportedError("Directory._deleteNative"); 35 throw new UnsupportedError("Directory._deleteNative");
36 } 36 }
37 @patch 37 @patch
38 static _rename(String path, String newPath) { 38 static _rename(String path, String newPath) {
39 throw new UnsupportedError("Directory._rename"); 39 throw new UnsupportedError("Directory._rename");
40 } 40 }
41 @patch 41 @patch
42 static List _list(String path, bool recursive, bool followLinks) { 42 static void _fillWithDirectoryListing(
43 throw new UnsupportedError("Directory._list"); 43 List<FileSystemEntity> list, String path, bool recursive,
44 bool followLinks) {
45 throw new UnsupportedError("Directory._fillWithDirectoryListing");
44 } 46 }
45 } 47 }
46 48
47 @patch 49 @patch
48 class _AsyncDirectoryListerOps { 50 class _AsyncDirectoryListerOps {
49 @patch 51 @patch
50 factory _AsyncDirectoryListerOps(int pointer) { 52 factory _AsyncDirectoryListerOps(int pointer) {
51 throw new UnsupportedError("Directory._list"); 53 throw new UnsupportedError("Directory._list");
52 } 54 }
53 } 55 }
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 303 }
302 @patch 304 @patch
303 factory InternetAddress(String address) { 305 factory InternetAddress(String address) {
304 throw new UnsupportedError("InternetAddress"); 306 throw new UnsupportedError("InternetAddress");
305 } 307 }
306 @patch 308 @patch
307 static Future<List<InternetAddress>> lookup( 309 static Future<List<InternetAddress>> lookup(
308 String host, {InternetAddressType type: InternetAddressType.ANY}) { 310 String host, {InternetAddressType type: InternetAddressType.ANY}) {
309 throw new UnsupportedError("InternetAddress.lookup"); 311 throw new UnsupportedError("InternetAddress.lookup");
310 } 312 }
313 @patch
314 static InternetAddress _cloneWithNewHost(
315 InternetAddress address, String host) {
316 throw new UnsupportedError("InternetAddress._cloneWithNewHost");
317 }
311 } 318 }
312 319
313 @patch 320 @patch
314 class NetworkInterface { 321 class NetworkInterface {
315 @patch 322 @patch
316 static bool get listSupported { 323 static bool get listSupported {
317 throw new UnsupportedError("NetworkInterface.listSupported"); 324 throw new UnsupportedError("NetworkInterface.listSupported");
318 } 325 }
319 @patch 326 @patch
320 static Future<List<NetworkInterface>> list({ 327 static Future<List<NetworkInterface>> list({
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 class _StdIOUtils { 427 class _StdIOUtils {
421 @patch 428 @patch
422 static Stdin _getStdioInputStream() { 429 static Stdin _getStdioInputStream() {
423 throw new UnsupportedError("StdIOUtils._getStdioInputStream"); 430 throw new UnsupportedError("StdIOUtils._getStdioInputStream");
424 } 431 }
425 @patch 432 @patch
426 static _getStdioOutputStream(int fd) { 433 static _getStdioOutputStream(int fd) {
427 throw new UnsupportedError("StdIOUtils._getStdioOutputStream"); 434 throw new UnsupportedError("StdIOUtils._getStdioOutputStream");
428 } 435 }
429 @patch 436 @patch
430 static int _socketType(nativeSocket) { 437 static int _socketType(Socket socket) {
431 throw new UnsupportedError("StdIOUtils._socketType"); 438 throw new UnsupportedError("StdIOUtils._socketType");
432 } 439 }
433 @patch 440 @patch
434 static _getStdioHandleType(int fd) { 441 static _getStdioHandleType(int fd) {
435 throw new UnsupportedError("StdIOUtils._getStdioHandleType"); 442 throw new UnsupportedError("StdIOUtils._getStdioHandleType");
436 } 443 }
437 } 444 }
438 445
439 @patch 446 @patch
440 class _WindowsCodePageDecoder { 447 class _WindowsCodePageDecoder {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 } 528 }
522 } 529 }
523 530
524 @patch 531 @patch
525 class _IOService { 532 class _IOService {
526 @patch 533 @patch
527 static Future _dispatch(int request, List data) { 534 static Future _dispatch(int request, List data) {
528 throw new UnsupportedError("_IOService._dispatch"); 535 throw new UnsupportedError("_IOService._dispatch");
529 } 536 }
530 } 537 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698