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

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

Issue 10021048: Remove need to instantiate Platform and make methods static. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add stable test binaries. Created 8 years, 8 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 | runtime/bin/platform.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/io.dart
diff --git a/lib/compiler/implementation/lib/io.dart b/lib/compiler/implementation/lib/io.dart
index e974badfcb293aacda3c4943f51fd3bb15f5a847..19f8ef8bf8dcd774237675bd0d090dcd059ce5ac 100644
--- a/lib/compiler/implementation/lib/io.dart
+++ b/lib/compiler/implementation/lib/io.dart
@@ -59,8 +59,24 @@ class _File {
}
class _Platform {
- factory Platform() {
- throw new UnsupportedOperationException('new Platform()');
+ static int numberOfProcessors() {
+ throw new UnsupportedOperationException('_Platform.numberOfProcessors()');
+ }
+
+ static String pathSeparator() {
+ throw new UnsupportedOperationException('_Platform.pathSeparator()');
+ }
+
+ static String operatingSystem() {
+ throw new UnsupportedOperationException('_Platform.operatingSystem()');
+ }
+
+ static String localHostname() {
+ throw new UnsupportedOperationException('_Platform.localHostname()');
+ }
+
+ static Map<String, String> environment() {
+ throw new UnsupportedOperationException('_Platform.environment()');
}
}
« no previous file with comments | « no previous file | runtime/bin/platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698