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 * Information about the environment in which the current program is running. | 8 * Information about the environment in which the current program is running. |
9 * | 9 * |
10 * Platform provides information such as the operating system, | 10 * Platform provides information such as the operating system, |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 * Returns the value of the --package-root flag passed to the executable | 166 * Returns the value of the --package-root flag passed to the executable |
167 * used to run the script in this isolate. This is the directory in which | 167 * used to run the script in this isolate. This is the directory in which |
168 * Dart packages are looked up. | 168 * Dart packages are looked up. |
169 * | 169 * |
170 * If there is no --package-root flag, then the empty string is returned. | 170 * If there is no --package-root flag, then the empty string is returned. |
171 */ | 171 */ |
172 static String get packageRoot => _Platform.packageRoot; | 172 static String get packageRoot => _Platform.packageRoot; |
173 | 173 |
174 /** | 174 /** |
175 * Returns the version of the current Dart runtime. | 175 * Returns the version of the current Dart runtime. |
| 176 * |
| 177 * The returned `String` is formatted as the |
| 178 * [semver](http://semver.org) version string of the current dart |
| 179 * runtime, possibly followed by whitespace and other version and |
| 180 * build details. |
176 */ | 181 */ |
177 static String get version => _version; | 182 static String get version => _version; |
178 } | 183 } |
OLD | NEW |