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

Unified Diff: runtime/bin/file_patch.dart

Issue 2230383003: Implement @patch annotation for patch class members (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/eventhandler_patch.dart ('k') | runtime/bin/file_system_entity_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_patch.dart
diff --git a/runtime/bin/file_patch.dart b/runtime/bin/file_patch.dart
index 8795b9c8848e2363356f595ca2b107fd0f04dd2e..2fe1414fa9950d6a9d07034b5ae8b8f546ae9bfc 100644
--- a/runtime/bin/file_patch.dart
+++ b/runtime/bin/file_patch.dart
@@ -3,27 +3,27 @@
// BSD-style license that can be found in the LICENSE file.
@patch class _File {
- /* @patch */ static _exists(String path) native "File_Exists";
- /* @patch */ static _create(String path) native "File_Create";
- /* @patch */ static _createLink(String path, String target)
+ @patch static _exists(String path) native "File_Exists";
+ @patch static _create(String path) native "File_Create";
+ @patch static _createLink(String path, String target)
native "File_CreateLink";
- /* @patch */ static _linkTarget(String path) native "File_LinkTarget";
- /* @patch */ static _deleteNative(String path) native "File_Delete";
- /* @patch */ static _deleteLinkNative(String path) native "File_DeleteLink";
- /* @patch */ static _rename(String oldPath, String newPath)
+ @patch static _linkTarget(String path) native "File_LinkTarget";
+ @patch static _deleteNative(String path) native "File_Delete";
+ @patch static _deleteLinkNative(String path) native "File_DeleteLink";
+ @patch static _rename(String oldPath, String newPath)
native "File_Rename";
- /* @patch */ static _renameLink(String oldPath, String newPath)
+ @patch static _renameLink(String oldPath, String newPath)
native "File_RenameLink";
- /* @patch */ static _copy(String oldPath, String newPath) native "File_Copy";
- /* @patch */ static _lengthFromPath(String path) native "File_LengthFromPath";
- /* @patch */ static _lastModified(String path) native "File_LastModified";
- /* @patch */ static _open(String path, int mode) native "File_Open";
- /* @patch */ static int _openStdio(int fd) native "File_OpenStdio";
+ @patch static _copy(String oldPath, String newPath) native "File_Copy";
+ @patch static _lengthFromPath(String path) native "File_LengthFromPath";
+ @patch static _lastModified(String path) native "File_LastModified";
+ @patch static _open(String path, int mode) native "File_Open";
+ @patch static int _openStdio(int fd) native "File_OpenStdio";
}
@patch class _RandomAccessFileOps {
- /* @patch */ factory _RandomAccessFileOps(int pointer)
+ @patch factory _RandomAccessFileOps(int pointer)
=> new _RandomAccessFileOpsImpl(pointer);
}
@@ -74,7 +74,7 @@ class _WatcherPath {
StreamController _broadcastController;
- /* @patch */ static Stream<FileSystemEvent> _watch(
+ @patch static Stream<FileSystemEvent> _watch(
String path, int events, bool recursive) {
if (Platform.isLinux) {
return new _InotifyFileSystemWatcher(path, events, recursive).stream;
@@ -262,7 +262,7 @@ class _WatcherPath {
});
}
- /* @patch */ static bool get isSupported
+ @patch static bool get isSupported
native "FileSystemWatcher_IsSupported";
static int _initWatcher() native "FileSystemWatcher_InitWatcher";
« no previous file with comments | « runtime/bin/eventhandler_patch.dart ('k') | runtime/bin/file_system_entity_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698