Index: sdk/lib/_internal/lib/io_patch.dart |
diff --git a/sdk/lib/_internal/lib/io_patch.dart b/sdk/lib/_internal/lib/io_patch.dart |
index 289fcc16269fce26b2834c920e0a261d27160ec9..06d642fef6c0cb60b4dc4fc1c4bb52fb30918015 100644 |
--- a/sdk/lib/_internal/lib/io_patch.dart |
+++ b/sdk/lib/_internal/lib/io_patch.dart |
@@ -2,202 +2,270 @@ |
// 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 _Directory { |
- patch static _current() { |
+import 'dart:_js_helper' show patch; |
+ |
+@patch |
+class _Directory { |
+ @patch |
+ static _current() { |
throw new UnsupportedError("Directory._current"); |
} |
- patch static _setCurrent(path) { |
+ @patch |
+ static _setCurrent(path) { |
throw new UnsupportedError("Directory_SetCurrent"); |
} |
- patch static _createTemp(String path) { |
+ @patch |
+ static _createTemp(String path) { |
throw new UnsupportedError("Directory._createTemp"); |
} |
- patch static String _systemTemp() { |
+ @patch |
+ static String _systemTemp() { |
throw new UnsupportedError("Directory._systemTemp"); |
} |
- patch static _exists(String path) { |
+ @patch |
+ static _exists(String path) { |
throw new UnsupportedError("Directory._exists"); |
} |
- patch static _create(String path) { |
+ @patch |
+ static _create(String path) { |
throw new UnsupportedError("Directory._create"); |
} |
- patch static _deleteNative(String path, bool recursive) { |
+ @patch |
+ static _deleteNative(String path, bool recursive) { |
throw new UnsupportedError("Directory._deleteNative"); |
} |
- patch static _rename(String path, String newPath) { |
+ @patch |
+ static _rename(String path, String newPath) { |
throw new UnsupportedError("Directory._rename"); |
} |
- patch static List _list(String path, bool recursive, bool followLinks) { |
+ @patch |
+ static List _list(String path, bool recursive, bool followLinks) { |
throw new UnsupportedError("Directory._list"); |
} |
} |
-patch class _EventHandler { |
- patch static void _sendData(Object sender, |
+@patch |
+class _EventHandler { |
+ @patch |
+ static void _sendData(Object sender, |
RawReceivePort receivePort, |
int data) { |
throw new UnsupportedError("EventHandler._sendData"); |
} |
} |
-patch class FileStat { |
- patch static _statSync(String path) { |
+@patch |
+class FileStat { |
+ @patch |
+ static _statSync(String path) { |
throw new UnsupportedError("FileStat.stat"); |
} |
} |
-patch class FileSystemEntity { |
- patch static _getType(String path, bool followLinks) { |
+@patch |
+class FileSystemEntity { |
+ @patch |
+ static _getType(String path, bool followLinks) { |
throw new UnsupportedError("FileSystemEntity._getType"); |
} |
- patch static _identical(String path1, String path2) { |
+ @patch |
+ static _identical(String path1, String path2) { |
throw new UnsupportedError("FileSystemEntity._identical"); |
} |
- patch static _resolveSymbolicLinks(String path) { |
+ @patch |
+ static _resolveSymbolicLinks(String path) { |
throw new UnsupportedError("FileSystemEntity._resolveSymbolicLinks"); |
} |
} |
-patch class _File { |
- patch static _exists(String path) { |
+@patch |
+class _File { |
+ @patch |
+ static _exists(String path) { |
throw new UnsupportedError("File._exists"); |
} |
- patch static _create(String path) { |
+ @patch |
+ static _create(String path) { |
throw new UnsupportedError("File._create"); |
} |
- patch static _createLink(String path, String target) { |
+ @patch |
+ static _createLink(String path, String target) { |
throw new UnsupportedError("File._createLink"); |
} |
- patch static _linkTarget(String path) { |
+ @patch |
+ static _linkTarget(String path) { |
throw new UnsupportedError("File._linkTarget"); |
} |
- patch static _deleteNative(String path) { |
+ @patch |
+ static _deleteNative(String path) { |
throw new UnsupportedError("File._deleteNative"); |
} |
- patch static _deleteLinkNative(String path) { |
+ @patch |
+ static _deleteLinkNative(String path) { |
throw new UnsupportedError("File._deleteLinkNative"); |
} |
- patch static _rename(String oldPath, String newPath) { |
+ @patch |
+ static _rename(String oldPath, String newPath) { |
throw new UnsupportedError("File._rename"); |
} |
- patch static _renameLink(String oldPath, String newPath) { |
+ @patch |
+ static _renameLink(String oldPath, String newPath) { |
throw new UnsupportedError("File._renameLink"); |
} |
- patch static _copy(String oldPath, String newPath) { |
+ @patch |
+ static _copy(String oldPath, String newPath) { |
throw new UnsupportedError("File._copy"); |
} |
- patch static _lengthFromPath(String path) { |
+ @patch |
+ static _lengthFromPath(String path) { |
throw new UnsupportedError("File._lengthFromPath"); |
} |
- patch static _lastModified(String path) { |
+ @patch |
+ static _lastModified(String path) { |
throw new UnsupportedError("File._lastModified"); |
} |
- patch static _open(String path, int mode) { |
+ @patch |
+ static _open(String path, int mode) { |
throw new UnsupportedError("File._open"); |
} |
- patch static int _openStdio(int fd) { |
+ @patch |
+ static int _openStdio(int fd) { |
throw new UnsupportedError("File._openStdio"); |
} |
} |
-patch class _RandomAccessFile { |
- patch static int _close(int id) { |
+@patch |
+class _RandomAccessFile { |
+ @patch |
+ static int _close(int id) { |
throw new UnsupportedError("RandomAccessFile._close"); |
} |
- patch static int _getFD(int id) { |
+ @patch |
+ static int _getFD(int id) { |
throw new UnsupportedError("RandomAccessFile._getFD"); |
} |
- patch static _readByte(int id) { |
+ @patch |
+ static _readByte(int id) { |
throw new UnsupportedError("RandomAccessFile._readByte"); |
} |
- patch static _read(int id, int bytes) { |
+ @patch |
+ static _read(int id, int bytes) { |
throw new UnsupportedError("RandomAccessFile._read"); |
} |
- patch static _readInto(int id, List<int> buffer, int start, int end) { |
+ @patch |
+ static _readInto(int id, List<int> buffer, int start, int end) { |
throw new UnsupportedError("RandomAccessFile._readInto"); |
} |
- patch static _writeByte(int id, int value) { |
+ @patch |
+ static _writeByte(int id, int value) { |
throw new UnsupportedError("RandomAccessFile._writeByte"); |
} |
- patch static _writeFrom(int id, List<int> buffer, int start, int end) { |
+ @patch |
+ static _writeFrom(int id, List<int> buffer, int start, int end) { |
throw new UnsupportedError("RandomAccessFile._writeFrom"); |
} |
- patch static _position(int id) { |
+ @patch |
+ static _position(int id) { |
throw new UnsupportedError("RandomAccessFile._position"); |
} |
- patch static _setPosition(int id, int position) { |
+ @patch |
+ static _setPosition(int id, int position) { |
throw new UnsupportedError("RandomAccessFile._setPosition"); |
} |
- patch static _truncate(int id, int length) { |
+ @patch |
+ static _truncate(int id, int length) { |
throw new UnsupportedError("RandomAccessFile._truncate"); |
} |
- patch static _length(int id) { |
+ @patch |
+ static _length(int id) { |
throw new UnsupportedError("RandomAccessFile._length"); |
} |
- patch static _flush(int id) { |
+ @patch |
+ static _flush(int id) { |
throw new UnsupportedError("RandomAccessFile._flush"); |
} |
} |
-patch class _IOCrypto { |
- patch static Uint8List getRandomBytes(int count) { |
+@patch |
+class _IOCrypto { |
+ @patch |
+ static Uint8List getRandomBytes(int count) { |
throw new UnsupportedError("_IOCrypto.getRandomBytes"); |
} |
} |
-patch class _Platform { |
- patch static int _numberOfProcessors() { |
+@patch |
+class _Platform { |
+ @patch |
+ static int _numberOfProcessors() { |
throw new UnsupportedError("Platform._numberOfProcessors"); |
} |
- patch static String _pathSeparator() { |
+ @patch |
+ static String _pathSeparator() { |
throw new UnsupportedError("Platform._pathSeparator"); |
} |
- patch static String _operatingSystem() { |
+ @patch |
+ static String _operatingSystem() { |
throw new UnsupportedError("Platform._operatingSystem"); |
} |
- patch static _localHostname() { |
+ @patch |
+ static _localHostname() { |
throw new UnsupportedError("Platform._localHostname"); |
} |
- patch static _executable() { |
+ @patch |
+ static _executable() { |
throw new UnsupportedError("Platform._executable"); |
} |
- patch static List<String> _executableArguments() { |
+ @patch |
+ static List<String> _executableArguments() { |
throw new UnsupportedError("Platform._executableArguments"); |
} |
- patch static String _packageRoot() { |
+ @patch |
+ static String _packageRoot() { |
throw new UnsupportedError("Platform._packageRoot"); |
} |
- patch static _environment() { |
+ @patch |
+ static _environment() { |
throw new UnsupportedError("Platform._environment"); |
} |
- patch static String _version() { |
+ @patch |
+ static String _version() { |
throw new UnsupportedError("Platform._version"); |
} |
} |
-patch class _ProcessUtils { |
- patch static void _exit(int status) { |
+@patch |
+class _ProcessUtils { |
+ @patch |
+ static void _exit(int status) { |
throw new UnsupportedError("ProcessUtils._exit"); |
} |
- patch static void _setExitCode(int status) { |
+ @patch |
+ static void _setExitCode(int status) { |
throw new UnsupportedError("ProcessUtils._setExitCode"); |
} |
- patch static int _getExitCode() { |
+ @patch |
+ static int _getExitCode() { |
throw new UnsupportedError("ProcessUtils._getExitCode"); |
} |
- patch static void _sleep(int millis) { |
+ @patch |
+ static void _sleep(int millis) { |
throw new UnsupportedError("ProcessUtils._sleep"); |
} |
- patch static int _pid(Process process) { |
+ @patch |
+ static int _pid(Process process) { |
throw new UnsupportedError("ProcessUtils._pid"); |
} |
- patch static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { |
+ @patch |
+ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { |
throw new UnsupportedError("ProcessUtils._watchSignal"); |
} |
} |
-patch class Process { |
- patch static Future<Process> start( |
+@patch |
+class Process { |
+ @patch |
+ static Future<Process> start( |
String executable, |
List<String> arguments, |
{String workingDirectory, |
@@ -207,7 +275,8 @@ patch class Process { |
throw new UnsupportedError("Process.start"); |
} |
- patch static Future<ProcessResult> run( |
+ @patch |
+ static Future<ProcessResult> run( |
String executable, |
List<String> arguments, |
{String workingDirectory, |
@@ -219,7 +288,8 @@ patch class Process { |
throw new UnsupportedError("Process.run"); |
} |
- patch static ProcessResult runSync( |
+ @patch |
+ static ProcessResult runSync( |
String executable, |
List<String> arguments, |
{String workingDirectory, |
@@ -232,30 +302,39 @@ patch class Process { |
} |
} |
-patch class InternetAddress { |
- patch static InternetAddress get LOOPBACK_IP_V4 { |
+@patch |
+class InternetAddress { |
+ @patch |
+ static InternetAddress get LOOPBACK_IP_V4 { |
throw new UnsupportedError("InternetAddress.LOOPBACK_IP_V4"); |
} |
- patch static InternetAddress get LOOPBACK_IP_V6 { |
+ @patch |
+ static InternetAddress get LOOPBACK_IP_V6 { |
throw new UnsupportedError("InternetAddress.LOOPBACK_IP_V6"); |
} |
- patch static InternetAddress get ANY_IP_V4 { |
+ @patch |
+ static InternetAddress get ANY_IP_V4 { |
throw new UnsupportedError("InternetAddress.ANY_IP_V4"); |
} |
- patch static InternetAddress get ANY_IP_V6 { |
+ @patch |
+ static InternetAddress get ANY_IP_V6 { |
throw new UnsupportedError("InternetAddress.ANY_IP_V6"); |
} |
- patch factory InternetAddress(String address) { |
+ @patch |
+ factory InternetAddress(String address) { |
throw new UnsupportedError("InternetAddress"); |
} |
- patch static Future<List<InternetAddress>> lookup( |
+ @patch |
+ static Future<List<InternetAddress>> lookup( |
String host, {InternetAddressType type: InternetAddressType.ANY}) { |
throw new UnsupportedError("InternetAddress.lookup"); |
} |
} |
-patch class NetworkInterface { |
- patch static Future<List<NetworkInterface>> list({ |
+@patch |
+class NetworkInterface { |
+ @patch |
+ static Future<List<NetworkInterface>> list({ |
bool includeLoopback: false, |
bool includeLinkLocal: false, |
InternetAddressType type: InternetAddressType.ANY}) { |
@@ -263,143 +342,185 @@ patch class NetworkInterface { |
} |
} |
-patch class RawServerSocket { |
- patch static Future<RawServerSocket> bind(address, |
- int port, |
- {int backlog: 0, |
- bool v6Only: false}) { |
+@patch |
+class RawServerSocket { |
+ @patch |
+ static Future<RawServerSocket> bind(address, |
+ int port, |
+ {int backlog: 0, |
+ bool v6Only: false}) { |
throw new UnsupportedError("RawServerSocket.bind"); |
} |
} |
-patch class ServerSocket { |
- patch static Future<ServerSocket> bind(address, |
- int port, |
- {int backlog: 0, |
- bool v6Only: false}) { |
+@patch |
+class ServerSocket { |
+ @patch |
+ static Future<ServerSocket> bind(address, |
+ int port, |
+ {int backlog: 0, |
+ bool v6Only: false}) { |
throw new UnsupportedError("ServerSocket.bind"); |
} |
} |
-patch class RawSocket { |
- patch static Future<RawSocket> connect(host, int port) { |
+@patch |
+class RawSocket { |
+ @patch |
+ static Future<RawSocket> connect(host, int port) { |
throw new UnsupportedError("RawSocket constructor"); |
} |
} |
-patch class Socket { |
- patch static Future<Socket> connect(host, int port) { |
+@patch |
+class Socket { |
+ @patch |
+ static Future<Socket> connect(host, int port) { |
throw new UnsupportedError("Socket constructor"); |
} |
} |
-patch class SecureSocket { |
- patch factory SecureSocket._(RawSecureSocket rawSocket) { |
+@patch |
+class SecureSocket { |
+ @patch |
+ factory SecureSocket._(RawSecureSocket rawSocket) { |
throw new UnsupportedError("SecureSocket constructor"); |
} |
- patch static void initialize({String database, |
- String password, |
- bool useBuiltinRoots: true}) { |
+ @patch |
+ static void initialize({String database, |
+ String password, |
+ bool useBuiltinRoots: true}) { |
throw new UnsupportedError("SecureSocket.initialize"); |
} |
} |
-patch class RawDatagramSocket { |
- patch static Future<RawDatagramSocket> bind( |
+@patch |
+class RawDatagramSocket { |
+ @patch |
+ static Future<RawDatagramSocket> bind( |
host, int port, {bool reuseAddress: true}) { |
throw new UnsupportedError("RawDatagramSocket.bind"); |
} |
} |
-patch class _SecureFilter { |
- patch factory _SecureFilter() { |
+@patch |
+class _SecureFilter { |
+ @patch |
+ factory _SecureFilter() { |
throw new UnsupportedError("_SecureFilter._SecureFilter"); |
} |
} |
-patch class _StdIOUtils { |
- patch static Stdin _getStdioInputStream() { |
+@patch |
+class _StdIOUtils { |
+ @patch |
+ static Stdin _getStdioInputStream() { |
throw new UnsupportedError("StdIOUtils._getStdioInputStream"); |
} |
- patch static _getStdioOutputStream(int fd) { |
+ @patch |
+ static _getStdioOutputStream(int fd) { |
throw new UnsupportedError("StdIOUtils._getStdioOutputStream"); |
} |
- patch static int _socketType(nativeSocket) { |
+ @patch |
+ static int _socketType(nativeSocket) { |
throw new UnsupportedError("StdIOUtils._socketType"); |
} |
- patch static _getStdioHandleType(int fd) { |
+ @patch |
+ static _getStdioHandleType(int fd) { |
throw new UnsupportedError("StdIOUtils._getStdioHandleType"); |
} |
} |
-patch class _WindowsCodePageDecoder { |
- patch static String _decodeBytes(List<int> bytes) { |
+@patch |
+class _WindowsCodePageDecoder { |
+ @patch |
+ static String _decodeBytes(List<int> bytes) { |
throw new UnsupportedError("_WindowsCodePageDecoder._decodeBytes"); |
} |
} |
-patch class _WindowsCodePageEncoder { |
- patch static List<int> _encodeString(String string) { |
+@patch |
+class _WindowsCodePageEncoder { |
+ @patch |
+ static List<int> _encodeString(String string) { |
throw new UnsupportedError("_WindowsCodePageEncoder._encodeString"); |
} |
} |
-patch class _Filter { |
- patch static _Filter newZLibDeflateFilter(bool gzip, int level, |
- int windowBits, int memLevel, |
- int strategy, |
- List<int> dictionary, bool raw) { |
+@patch |
+class _Filter { |
+ @patch |
+ static _Filter newZLibDeflateFilter(bool gzip, int level, |
+ int windowBits, int memLevel, |
+ int strategy, |
+ List<int> dictionary, bool raw) { |
throw new UnsupportedError("newZLibDeflateFilter"); |
} |
- patch static _Filter newZLibInflateFilter(int windowBits, |
- List<int> dictionary, bool raw) { |
+ @patch |
+ static _Filter newZLibInflateFilter(int windowBits, |
+ List<int> dictionary, bool raw) { |
throw new UnsupportedError("newZLibInflateFilter"); |
} |
} |
-patch class Stdin { |
- patch int readByteSync() { |
+@patch |
+class Stdin { |
+ @patch |
+ int readByteSync() { |
throw new UnsupportedError("Stdin.readByteSync"); |
} |
- patch bool get echoMode { |
+ @patch |
+ bool get echoMode { |
throw new UnsupportedError("Stdin.echoMode"); |
} |
- patch void set echoMode(bool enabled) { |
+ @patch |
+ void set echoMode(bool enabled) { |
throw new UnsupportedError("Stdin.echoMode"); |
} |
- patch bool get lineMode { |
+ @patch |
+ bool get lineMode { |
throw new UnsupportedError("Stdin.lineMode"); |
} |
- patch void set lineMode(bool enabled) { |
+ @patch |
+ void set lineMode(bool enabled) { |
throw new UnsupportedError("Stdin.lineMode"); |
} |
} |
-patch class Stdout { |
- patch bool get hasTerminal { |
+@patch |
+class Stdout { |
+ @patch |
+ bool get hasTerminal { |
throw new UnsupportedError("Stdout.hasTerminal"); |
} |
- patch int get terminalColumns { |
+ @patch |
+ int get terminalColumns { |
throw new UnsupportedError("Stdout.terminalColumns"); |
} |
- patch int get terminalLines { |
+ @patch |
+ int get terminalLines { |
throw new UnsupportedError("Stdout.terminalLines"); |
} |
} |
-patch class _FileSystemWatcher { |
- patch static Stream<FileSystemEvent> watch( |
+@patch |
+class _FileSystemWatcher { |
+ @patch |
+ static Stream<FileSystemEvent> watch( |
String path, int events, bool recursive) { |
throw new UnsupportedError("_FileSystemWatcher.watch"); |
} |
- patch static bool get isSupported { |
+ @patch |
+ static bool get isSupported { |
throw new UnsupportedError("_FileSystemWatcher.isSupported"); |
} |
} |
-patch class _IOService { |
- patch static Future dispatch(int request, List data) { |
+@patch |
+class _IOService { |
+ @patch |
+ static Future dispatch(int request, List data) { |
throw new UnsupportedError("_IOService.dispatch"); |
} |
} |