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

Side by Side Diff: runtime/bin/directory_patch.dart

Issue 2220883004: Use metadata annotation @patch for patch classes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: wip Created 4 years, 4 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 void _fillWithDirectoryListing( 16 /* @patch */ static void _fillWithDirectoryListing(
17 List<FileSystemEntity> list, String path, bool recursive, 17 List<FileSystemEntity> list, String path, bool recursive,
18 bool followLinks) 18 bool followLinks)
19 native "Directory_FillWithDirectoryListing"; 19 native "Directory_FillWithDirectoryListing";
20 } 20 }
21 21
22 patch class _AsyncDirectoryListerOps { 22 @patch class _AsyncDirectoryListerOps {
23 /* patch */ factory _AsyncDirectoryListerOps(int pointer) => 23 /* @patch */ factory _AsyncDirectoryListerOps(int pointer) =>
24 new _AsyncDirectoryListerOpsImpl(pointer); 24 new _AsyncDirectoryListerOpsImpl(pointer);
25 } 25 }
26 26
27 class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1 27 class _AsyncDirectoryListerOpsImpl extends NativeFieldWrapperClass1
28 implements _AsyncDirectoryListerOps { 28 implements _AsyncDirectoryListerOps {
29 _AsyncDirectoryListerOpsImpl._(); 29 _AsyncDirectoryListerOpsImpl._();
30 30
31 factory _AsyncDirectoryListerOpsImpl(int pointer) 31 factory _AsyncDirectoryListerOpsImpl(int pointer)
32 => new _AsyncDirectoryListerOpsImpl._().._setPointer(pointer); 32 => new _AsyncDirectoryListerOpsImpl._().._setPointer(pointer);
33 33
34 void _setPointer(int pointer) 34 void _setPointer(int pointer)
35 native "Directory_SetAsyncDirectoryListerPointer"; 35 native "Directory_SetAsyncDirectoryListerPointer";
36 int getPointer() 36 int getPointer()
37 native "Directory_GetAsyncDirectoryListerPointer"; 37 native "Directory_GetAsyncDirectoryListerPointer";
38 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698