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

Unified Diff: runtime/bin/stdio_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/socket_patch.dart ('k') | runtime/lib/array_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stdio_patch.dart
diff --git a/runtime/bin/stdio_patch.dart b/runtime/bin/stdio_patch.dart
index 3c258c56d304a29184aeb32400d293da0c79eb76..b3dc68eef7565224b7025a5288c7fa881d23f2dc 100644
--- a/runtime/bin/stdio_patch.dart
+++ b/runtime/bin/stdio_patch.dart
@@ -47,13 +47,13 @@
}
@patch class Stdin {
- /* @patch */ int readByteSync() native "Stdin_ReadByte";
+ @patch int readByteSync() native "Stdin_ReadByte";
- /* @patch */ bool get echoMode => _echoMode;
- /* @patch */ void set echoMode(bool enabled) { _echoMode = enabled; }
+ @patch bool get echoMode => _echoMode;
+ @patch void set echoMode(bool enabled) { _echoMode = enabled; }
- /* @patch */ bool get lineMode => _lineMode;
- /* @patch */ void set lineMode(bool enabled) { _lineMode = enabled; }
+ @patch bool get lineMode => _lineMode;
+ @patch void set lineMode(bool enabled) { _lineMode = enabled; }
static bool get _echoMode native "Stdin_GetEchoMode";
static void set _echoMode(bool enabled) native "Stdin_SetEchoMode";
@@ -62,7 +62,7 @@
}
@patch class Stdout {
- /* @patch */ bool _hasTerminal(int fd) {
+ @patch bool _hasTerminal(int fd) {
try {
_terminalSize(fd);
return true;
@@ -71,8 +71,8 @@
}
}
- /* @patch */ int _terminalColumns(int fd) => _terminalSize(fd)[0];
- /* @patch */ int _terminalLines(int fd) => _terminalSize(fd)[1];
+ @patch int _terminalColumns(int fd) => _terminalSize(fd)[0];
+ @patch int _terminalLines(int fd) => _terminalSize(fd)[1];
static List _terminalSize(int fd) {
var size = _getTerminalSize(fd);
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | runtime/lib/array_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698