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

Unified Diff: runtime/bin/process_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/platform_patch.dart ('k') | runtime/bin/secure_socket_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_patch.dart
diff --git a/runtime/bin/process_patch.dart b/runtime/bin/process_patch.dart
index 2e3d2fba0d3965d390a731067017882b4ea6d7ca..bfb09db6685561cde46b079caa24aa625d604796 100644
--- a/runtime/bin/process_patch.dart
+++ b/runtime/bin/process_patch.dart
@@ -3,19 +3,19 @@
// BSD-style license that can be found in the LICENSE file.
@patch class _WindowsCodePageDecoder {
- /* @patch */ static String _decodeBytes(List<int> bytes)
+ @patch static String _decodeBytes(List<int> bytes)
native "SystemEncodingToString";
}
@patch class _WindowsCodePageEncoder {
- /* @patch */ static List<int> _encodeString(String string)
+ @patch static List<int> _encodeString(String string)
native "StringToSystemEncoding";
}
@patch class Process {
- /* @patch */ static Future<Process> start(
+ @patch static Future<Process> start(
String executable,
List<String> arguments,
{String workingDirectory,
@@ -33,7 +33,7 @@
return process._start();
}
- /* @patch */ static Future<ProcessResult> run(
+ @patch static Future<ProcessResult> run(
String executable,
List<String> arguments,
{String workingDirectory,
@@ -52,7 +52,7 @@
stderrEncoding);
}
- /* @patch */ static ProcessResult runSync(
+ @patch static ProcessResult runSync(
String executable,
List<String> arguments,
{String workingDirectory,
@@ -71,7 +71,7 @@
stderrEncoding);
}
- /* @patch */ static bool killPid(
+ @patch static bool killPid(
int pid, [ProcessSignal signal = ProcessSignal.SIGTERM]) {
if (signal is! ProcessSignal) {
throw new ArgumentError(
@@ -125,9 +125,9 @@ class _SignalController {
}
}
- /* @patch */ static _setSignalHandler(int signal)
+ @patch static _setSignalHandler(int signal)
native "Process_SetSignalHandler";
- /* @patch */ static int _clearSignalHandler(int signal)
+ @patch static int _clearSignalHandler(int signal)
native "Process_ClearSignalHandler";
}
@@ -135,15 +135,15 @@ Function _getWatchSignalInternal() => _ProcessUtils._watchSignalInternal;
@patch class _ProcessUtils {
- /* @patch */ static void _exit(int status) native "Process_Exit";
- /* @patch */ static void _setExitCode(int status)
+ @patch static void _exit(int status) native "Process_Exit";
+ @patch static void _setExitCode(int status)
native "Process_SetExitCode";
- /* @patch */ static int _getExitCode() native "Process_GetExitCode";
- /* @patch */ static void _sleep(int millis) native "Process_Sleep";
- /* @patch */ static int _pid(Process process) native "Process_Pid";
+ @patch static int _getExitCode() native "Process_GetExitCode";
+ @patch static void _sleep(int millis) native "Process_Sleep";
+ @patch static int _pid(Process process) native "Process_Pid";
static bool _killPid(int pid, int signal)
native "Process_KillPid";
- /* @patch */ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) {
+ @patch static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) {
if (signal != ProcessSignal.SIGHUP &&
signal != ProcessSignal.SIGINT &&
signal != ProcessSignal.SIGTERM &&
« no previous file with comments | « runtime/bin/platform_patch.dart ('k') | runtime/bin/secure_socket_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698