OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of dart.io; | 5 part of dart.io; |
6 | 6 |
7 /** | 7 /** |
8 * The [Platform] class exposes details of the machine and operating | 8 * The [Platform] class exposes details of the machine and operating |
9 * system. | 9 * system. |
10 */ | 10 */ |
11 @deprecated | |
12 class Platform { | 11 class Platform { |
13 static final _numberOfProcessors = _Platform.numberOfProcessors; | 12 static final _numberOfProcessors = _Platform.numberOfProcessors; |
14 static final _pathSeparator = _Platform.pathSeparator; | 13 static final _pathSeparator = _Platform.pathSeparator; |
15 static final _operatingSystem = _Platform.operatingSystem; | 14 static final _operatingSystem = _Platform.operatingSystem; |
16 static final _localHostname = _Platform.localHostname; | 15 static final _localHostname = _Platform.localHostname; |
17 static final _version = _Platform.version; | 16 static final _version = _Platform.version; |
18 | 17 |
19 // This script singleton is written to by the embedder if applicable. | 18 // This script singleton is written to by the embedder if applicable. |
20 static String _nativeScript = ''; | 19 static String _nativeScript = ''; |
21 | 20 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 * | 104 * |
106 * If there is no --package-root flag, then the empty string is returned. | 105 * If there is no --package-root flag, then the empty string is returned. |
107 */ | 106 */ |
108 static String get packageRoot => _Platform.packageRoot; | 107 static String get packageRoot => _Platform.packageRoot; |
109 | 108 |
110 /** | 109 /** |
111 * Returns the version of the current Dart runtime. | 110 * Returns the version of the current Dart runtime. |
112 */ | 111 */ |
113 static String get version => _version; | 112 static String get version => _version; |
114 } | 113 } |
OLD | NEW |