Index: runtime/bin/socket_patch.dart |
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart |
index 2f48d4a3e3549a39dfe3b6eada27d15775f1ce6c..e4bcb9f70d2293fe2de68549a84f060abe9012d3 100644 |
--- a/runtime/bin/socket_patch.dart |
+++ b/runtime/bin/socket_patch.dart |
@@ -2,8 +2,8 @@ |
// 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 RawServerSocket { |
- /* patch */ static Future<RawServerSocket> bind(address, |
+@patch class RawServerSocket { |
+ /* @patch */ static Future<RawServerSocket> bind(address, |
int port, |
{int backlog: 0, |
bool v6Only: false, |
@@ -13,52 +13,52 @@ patch class RawServerSocket { |
} |
-patch class RawSocket { |
- /* patch */ static Future<RawSocket> connect( |
+@patch class RawSocket { |
+ /* @patch */ static Future<RawSocket> connect( |
host, int port, {sourceAddress}) { |
return _RawSocket.connect(host, port, sourceAddress); |
} |
} |
-patch class InternetAddress { |
- /* patch */ static InternetAddress get LOOPBACK_IP_V4 { |
+@patch class InternetAddress { |
+ /* @patch */ static InternetAddress get LOOPBACK_IP_V4 { |
return _InternetAddress.LOOPBACK_IP_V4; |
} |
- /* patch */ static InternetAddress get LOOPBACK_IP_V6 { |
+ /* @patch */ static InternetAddress get LOOPBACK_IP_V6 { |
return _InternetAddress.LOOPBACK_IP_V6; |
} |
- /* patch */ static InternetAddress get ANY_IP_V4 { |
+ /* @patch */ static InternetAddress get ANY_IP_V4 { |
return _InternetAddress.ANY_IP_V4; |
} |
- /* patch */ static InternetAddress get ANY_IP_V6 { |
+ /* @patch */ static InternetAddress get ANY_IP_V6 { |
return _InternetAddress.ANY_IP_V6; |
} |
- /* patch */ factory InternetAddress(String address) { |
+ /* @patch */ factory InternetAddress(String address) { |
return new _InternetAddress.parse(address); |
} |
- /* patch */ static Future<List<InternetAddress>> lookup( |
+ /* @patch */ static Future<List<InternetAddress>> lookup( |
String host, {InternetAddressType type: InternetAddressType.ANY}) { |
return _NativeSocket.lookup(host, type: type); |
} |
- /* patch */ static InternetAddress _cloneWithNewHost( |
+ /* @patch */ static InternetAddress _cloneWithNewHost( |
InternetAddress address, String host) { |
return (address as _InternetAddress)._cloneWithNewHost(host); |
} |
} |
-patch class NetworkInterface { |
- /* patch */ static bool get listSupported { |
+@patch class NetworkInterface { |
+ /* @patch */ static bool get listSupported { |
return _listSupported(); |
} |
- /* patch */ static Future<List<NetworkInterface>> list({ |
+ /* @patch */ static Future<List<NetworkInterface>> list({ |
bool includeLoopback: false, |
bool includeLinkLocal: false, |
InternetAddressType type: InternetAddressType.ANY}) { |
@@ -1360,8 +1360,8 @@ class _RawSocket extends Stream<RawSocketEvent> |
} |
-patch class ServerSocket { |
- /* patch */ static Future<ServerSocket> bind(address, |
+@patch class ServerSocket { |
+ /* @patch */ static Future<ServerSocket> bind(address, |
int port, |
{int backlog: 0, |
bool v6Only: false, |
@@ -1407,8 +1407,8 @@ class _ServerSocket extends Stream<Socket> |
} |
-patch class Socket { |
- /* patch */ static Future<Socket> connect(host, int port, {sourceAddress}) { |
+@patch class Socket { |
+ /* @patch */ static Future<Socket> connect(host, int port, {sourceAddress}) { |
return RawSocket.connect(host, port, sourceAddress: sourceAddress).then( |
(socket) => new _Socket(socket)); |
} |
@@ -1720,8 +1720,8 @@ class _Socket extends Stream<List<int>> implements Socket { |
} |
-patch class RawDatagramSocket { |
- /* patch */ static Future<RawDatagramSocket> bind( |
+@patch class RawDatagramSocket { |
+ /* @patch */ static Future<RawDatagramSocket> bind( |
host, int port, {bool reuseAddress: true}) { |
return _RawDatagramSocket.bind(host, port, reuseAddress); |
} |