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

Side by Side Diff: sdk/lib/io/platform.dart

Issue 1529063006: - Implement Platform.packageRoot and Platform.packageConfig based (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 the empty string is returned. 188 * If there is no --package-root flag, then null is returned.
189 */ 189 */
190 static String get packageRoot => _Platform.packageRoot; 190 static String get packageRoot => _Platform.packageRoot;
191 191
192 /**
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
195 * specifies how Dart packages are looked up.
196 *
197 * If there is no --packages flag, then the null is returned.
198 */
199 static String get packageConfig => _Platform.packageConfig;
200
192 /** 201 /**
193 * Returns the version of the current Dart runtime. 202 * Returns the version of the current Dart runtime.
194 * 203 *
195 * The returned `String` is formatted as the 204 * The returned `String` is formatted as the
196 * [semver](http://semver.org) version string of the current dart 205 * [semver](http://semver.org) version string of the current dart
197 * runtime, possibly followed by whitespace and other version and 206 * runtime, possibly followed by whitespace and other version and
198 * build details. 207 * build details.
199 */ 208 */
200 static String get version => _version; 209 static String get version => _version;
201 } 210 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698