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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/io/platform.dart
diff --git a/sdk/lib/io/platform.dart b/sdk/lib/io/platform.dart
index c9e1cc66d6d084212d356c0be7a099731327d3ce..7cd20a101000eb2cfc021aff6079ba6ac99b06ad 100644
--- a/sdk/lib/io/platform.dart
+++ b/sdk/lib/io/platform.dart
@@ -185,10 +185,19 @@ class Platform {
* used to run the script in this isolate. This is the directory in which
* Dart packages are looked up.
*
- * If there is no --package-root flag, then the empty string is returned.
+ * If there is no --package-root flag, then null is returned.
*/
static String get packageRoot => _Platform.packageRoot;
+/**
+ * Returns the value of the --packages flag passed to the executable
+ * used to run the script in this isolate. This is the configuration which
+ * specifies how Dart packages are looked up.
+ *
+ * If there is no --packages flag, then the null is returned.
+ */
+ static String get packageConfig => _Platform.packageConfig;
+
/**
* Returns the version of the current Dart runtime.
*

Powered by Google App Engine
This is Rietveld 408576698