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

Side by Side Diff: runtime/bin/directory_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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 patch class _Directory { 5 patch class _Directory {
6 /* patch */ static _current() native "Directory_Current"; 6 /* patch */ static _current() native "Directory_Current";
7 /* patch */ static _setCurrent(path) native "Directory_SetCurrent"; 7 /* patch */ static _setCurrent(path) native "Directory_SetCurrent";
8 /* patch */ static _createTemp(String path) native "Directory_CreateTemp"; 8 /* patch */ static _createTemp(String path) native "Directory_CreateTemp";
9 /* patch */ static String _systemTemp() native "Directory_SystemTemp"; 9 /* patch */ static String _systemTemp() native "Directory_SystemTemp";
10 /* patch */ static _exists(String path) native "Directory_Exists"; 10 /* patch */ static _exists(String path) native "Directory_Exists";
11 /* patch */ static _create(String path) native "Directory_Create"; 11 /* patch */ static _create(String path) native "Directory_Create";
12 /* patch */ static _deleteNative(String path, bool recursive) 12 /* patch */ static _deleteNative(String path, bool recursive)
13 native "Directory_Delete"; 13 native "Directory_Delete";
14 /* patch */ static _rename(String path, String newPath) 14 /* patch */ static _rename(String path, String newPath)
15 native "Directory_Rename"; 15 native "Directory_Rename";
16 /* patch */ static List _list(String path, bool recursive, bool followLinks) 16 /* patch */ static void _fillWithDirectoryListing(
17 native "Directory_List"; 17 List<FileSystemEntity> list, String path, bool recursive,
18 bool followLinks)
19 native "Directory_FillWithDirectoryListing";
18 } 20 }
19 21
20 patch class _AsyncDirectoryListerOps { 22 patch class _AsyncDirectoryListerOps {
21 /* patch */ factory _AsyncDirectoryListerOps(int pointer) => 23 /* patch */ factory _AsyncDirectoryListerOps(int pointer) =>
22 new _AsyncDirectoryListerOpsImpl(pointer); 24 new _AsyncDirectoryListerOpsImpl(pointer);
23 } 25 }
24 26
25 class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1 27 class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1
26 implements _AsyncDirectoryListerOps { 28 implements _AsyncDirectoryListerOps {
27 _AsyncDirectoryListerOpsImpl._(); 29 _AsyncDirectoryListerOpsImpl._();
28 30
29 factory _AsyncDirectoryListerOpsImpl(int pointer) 31 factory _AsyncDirectoryListerOpsImpl(int pointer)
30 => new _AsyncDirectoryListerOpsImpl._().._setPointer(pointer); 32 => new _AsyncDirectoryListerOpsImpl._().._setPointer(pointer);
31 33
32 void _setPointer(int pointer) 34 void _setPointer(int pointer)
33 native "Directory_SetAsyncDirectoryListerPointer"; 35 native "Directory_SetAsyncDirectoryListerPointer";
34 int getPointer() 36 int getPointer()
35 native "Directory_GetAsyncDirectoryListerPointer"; 37 native "Directory_GetAsyncDirectoryListerPointer";
36 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698