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

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

Issue 10351011: Change Platform members to getters instead of methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding new 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 | « lib/compiler/implementation/filenames.dart ('k') | 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 e97ccf17338d1644217b8fddbdb72579176d8c95..040925dfa298101ae82c33d38cb8a68cbdc5e618 100644
--- a/lib/compiler/implementation/lib/io.dart
+++ b/lib/compiler/implementation/lib/io.dart
@@ -61,24 +61,24 @@ class _File {
}
class _Platform {
- static int numberOfProcessors() {
- throw new UnsupportedOperationException('_Platform.numberOfProcessors()');
+ static int get numberOfProcessors() {
+ throw new UnsupportedOperationException('_Platform.numberOfProcessors');
}
- static String pathSeparator() {
- throw new UnsupportedOperationException('_Platform.pathSeparator()');
+ static String get pathSeparator() {
+ throw new UnsupportedOperationException('_Platform.pathSeparator');
}
- static String operatingSystem() {
- throw new UnsupportedOperationException('_Platform.operatingSystem()');
+ static String get operatingSystem() {
+ throw new UnsupportedOperationException('_Platform.operatingSystem');
}
- static String localHostname() {
- throw new UnsupportedOperationException('_Platform.localHostname()');
+ static String get localHostname() {
+ throw new UnsupportedOperationException('_Platform.localHostname');
}
- static Map<String, String> environment() {
- throw new UnsupportedOperationException('_Platform.environment()');
+ static Map<String, String> get environment() {
+ throw new UnsupportedOperationException('_Platform.environment');
}
}
« no previous file with comments | « lib/compiler/implementation/filenames.dart ('k') | runtime/bin/platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698