| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 /** | 175 /** |
| 176 * Returns the flags passed to the executable used to run the script in this | 176 * Returns the flags passed to the executable used to run the script in this |
| 177 * isolate. These are the command-line flags between the executable name | 177 * isolate. These are the command-line flags between the executable name |
| 178 * and the script name. Each fetch of executableArguments returns a new | 178 * and the script name. Each fetch of executableArguments returns a new |
| 179 * List, containing the flags passed to the executable. | 179 * List, containing the flags passed to the executable. |
| 180 */ | 180 */ |
| 181 static List<String> get executableArguments => _Platform.executableArguments; | 181 static List<String> get executableArguments => _Platform.executableArguments; |
| 182 | 182 |
| 183 /** | 183 /** |
| 184 * Returns the value of the --package-root flag passed to the executable | 184 * Returns the value of the `--package-root` flag passed to the executable |
| 185 * used to run the script in this isolate. This is the directory in which | 185 * used to run the script in this isolate. This is the directory in which |
| 186 * Dart packages are looked up. | 186 * Dart packages are looked up. |
| 187 * | 187 * |
| 188 * If there is no --package-root flag, then null is returned. | 188 * If there is no `--package-root` flag, `null` is returned. |
| 189 */ | 189 */ |
| 190 static String get packageRoot => _Platform.packageRoot; | 190 static String get packageRoot => _Platform.packageRoot; |
| 191 | 191 |
| 192 /** | 192 /** |
| 193 * Returns the value of the --packages flag passed to the executable | 193 * Returns the value of the `--packages` flag passed to the executable |
| 194 * used to run the script in this isolate. This is the configuration which | 194 * used to run the script in this isolate. This is the configuration which |
| 195 * specifies how Dart packages are looked up. | 195 * specifies how Dart packages are looked up. |
| 196 * | 196 * |
| 197 * If there is no --packages flag, then the null is returned. | 197 * If there is no `--packages` flag, `null` is returned. |
| 198 */ | 198 */ |
| 199 static String get packageConfig => _Platform.packageConfig; | 199 static String get packageConfig => _Platform.packageConfig; |
| 200 | 200 |
| 201 /** | 201 /** |
| 202 * Returns the version of the current Dart runtime. | 202 * Returns the version of the current Dart runtime. |
| 203 * | 203 * |
| 204 * The returned `String` is formatted as the | 204 * The returned `String` is formatted as the |
| 205 * [semver](http://semver.org) version string of the current dart | 205 * [semver](http://semver.org) version string of the current dart |
| 206 * runtime, possibly followed by whitespace and other version and | 206 * runtime, possibly followed by whitespace and other version and |
| 207 * build details. | 207 * build details. |
| 208 */ | 208 */ |
| 209 static String get version => _version; | 209 static String get version => _version; |
| 210 } | 210 } |
| OLD | NEW |