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

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

Issue 9980004: Look up the correct constructor for default classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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: lib/compiler/implementation/lib/io.dart
diff --git a/lib/compiler/implementation/lib/io.dart b/lib/compiler/implementation/lib/io.dart
index bdd4eea896f77cb5633edfb3e1af8ea477beb0b0..838c5f481fe3dea96607cf489726286ff417d334 100644
--- a/lib/compiler/implementation/lib/io.dart
+++ b/lib/compiler/implementation/lib/io.dart
@@ -52,19 +52,19 @@
#source('../../../../runtime/bin/timer.dart');
#source('../../../../runtime/bin/timer_impl.dart');
-class _File implements File {
+class _File {
factory File(arg) {
throw new UnsupportedOperationException('new File($arg)');
}
}
-class _Platform implements Platform {
+class _Platform {
factory Platform() {
throw new UnsupportedOperationException('new Platform()');
}
}
-class _Directory implements Directory {
+class _Directory {
factory Directory(arg) {
throw new UnsupportedOperationException('new Directory($arg)');
}
@@ -74,7 +74,7 @@ class _Directory implements Directory {
}
}
-class _Process implements Process {
+class _Process {
factory Process.start(String executable,
List<String> arguments,
[String workingDirectory]) {
@@ -83,14 +83,14 @@ class _Process implements Process {
}
}
-class _ServerSocket implements ServerSocket {
- factory _ServerSocket(String bindAddress, int port, int backlog) {
+class _ServerSocket {
+ factory ServerSocket(String bindAddress, int port, int backlog) {
throw new UnsupportedOperationException(
'new ServerSocket($bindAddress, $port, $backlog)');
}
}
-class _Socket implements Socket {
+class _Socket {
factory Socket(String host, int port) {
throw new UnsupportedOperationException('new Socket($host, $port)');
}

Powered by Google App Engine
This is Rietveld 408576698