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

Unified Diff: dart/lib/compiler/implementation/lib/io.dart

Issue 11027063: Update dart:io mock to avoid type warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 8 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/lib/io.dart
diff --git a/dart/lib/compiler/implementation/lib/io.dart b/dart/lib/compiler/implementation/lib/io.dart
index 6fbcda0e627d089e0bcc8d55772057166f7f9de6..ee6559f323ee21b47cd04dab41018e3e0d54cb5e 100644
--- a/dart/lib/compiler/implementation/lib/io.dart
+++ b/dart/lib/compiler/implementation/lib/io.dart
@@ -101,11 +101,11 @@ List _ensureFastAndSerializableBuffer(List buffer, int offset, int bytes) {
}
class _File {
- factory File(arg) {
+ factory _File(arg) {
throw new UnsupportedOperationException('new File($arg)');
}
- factory File.fromPath(arg) {
+ factory _File.fromPath(arg) {
throw new UnsupportedOperationException('new File.fromPath($arg)');
}
}
@@ -133,15 +133,15 @@ class _Platform {
}
class _Directory {
- factory Directory(arg) {
+ factory _Directory(arg) {
throw new UnsupportedOperationException('new Directory($arg)');
}
- factory Directory.fromPath(arg) {
+ factory _Directory.fromPath(arg) {
throw new UnsupportedOperationException('new Directory.fromPath($arg)');
}
- factory Directory.current() {
+ factory _Directory.current() {
throw new UnsupportedOperationException('new Directory.current()');
}
}
@@ -170,14 +170,14 @@ class _Process {
}
class _ServerSocket {
- factory ServerSocket(String bindAddress, int port, int backlog) {
+ factory _ServerSocket(String bindAddress, int port, int backlog) {
throw new UnsupportedOperationException(
'new ServerSocket($bindAddress, $port, $backlog)');
}
}
class _Socket {
- factory Socket(String host, int port) {
+ factory _Socket(String host, int port) {
throw new UnsupportedOperationException('new Socket($host, $port)');
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698