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

Unified Diff: runtime/bin/process_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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/process_patch.dart
diff --git a/runtime/bin/process_patch.dart b/runtime/bin/process_patch.dart
index 60fb2b5494dcf307f0722c68b4ea74e21afe0cbe..2e3d2fba0d3965d390a731067017882b4ea6d7ca 100644
--- a/runtime/bin/process_patch.dart
+++ b/runtime/bin/process_patch.dart
@@ -2,20 +2,20 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-patch class _WindowsCodePageDecoder {
- /* patch */ static String _decodeBytes(List<int> bytes)
+@patch class _WindowsCodePageDecoder {
+ /* @patch */ static String _decodeBytes(List<int> bytes)
native "SystemEncodingToString";
}
-patch class _WindowsCodePageEncoder {
- /* patch */ static List<int> _encodeString(String string)
+@patch class _WindowsCodePageEncoder {
+ /* @patch */ static List<int> _encodeString(String string)
native "StringToSystemEncoding";
}
-patch class Process {
- /* patch */ static Future<Process> start(
+@patch class Process {
+ /* @patch */ static Future<Process> start(
String executable,
List<String> arguments,
{String workingDirectory,
@@ -33,7 +33,7 @@ patch class Process {
return process._start();
}
- /* patch */ static Future<ProcessResult> run(
+ /* @patch */ static Future<ProcessResult> run(
String executable,
List<String> arguments,
{String workingDirectory,
@@ -52,7 +52,7 @@ patch class Process {
stderrEncoding);
}
- /* patch */ static ProcessResult runSync(
+ /* @patch */ static ProcessResult runSync(
String executable,
List<String> arguments,
{String workingDirectory,
@@ -71,7 +71,7 @@ patch class Process {
stderrEncoding);
}
- /* patch */ static bool killPid(
+ /* @patch */ static bool killPid(
int pid, [ProcessSignal signal = ProcessSignal.SIGTERM]) {
if (signal is! ProcessSignal) {
throw new ArgumentError(
@@ -125,25 +125,25 @@ 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";
}
Function _getWatchSignalInternal() => _ProcessUtils._watchSignalInternal;
-patch class _ProcessUtils {
- /* patch */ static void _exit(int status) native "Process_Exit";
- /* patch */ static void _setExitCode(int status)
+@patch class _ProcessUtils {
+ /* @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 &&

Powered by Google App Engine
This is Rietveld 408576698