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

Unified Diff: sdk/lib/io/platform_impl.dart

Issue 1334353002: - Add getters for the current packageRoot or packageMap. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months 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
« sdk/lib/io/platform.dart ('K') | « sdk/lib/io/platform.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/platform_impl.dart
diff --git a/sdk/lib/io/platform_impl.dart b/sdk/lib/io/platform_impl.dart
index 6380e0d7c92f622495d3c9ca2149db2baafdfda9..b2f3240bd0a7c6c15bb1ce201ae9fe8d6b86b9bc 100644
--- a/sdk/lib/io/platform_impl.dart
+++ b/sdk/lib/io/platform_impl.dart
@@ -28,12 +28,12 @@ class _Platform {
*/
external static _environment();
external static List<String> _executableArguments();
- external static String _packageRoot();
external static String _version();
static String executable = _executable();
static String resolvedExecutable = _resolvedExecutable();
- static String packageRoot = _packageRoot();
+ external static Future<Uri> get packageRoot;
+ external static Future<Map<String,Uri>> get packageMap;
// Cache the OS environemnt. This can be an OSError instance if
// retrieving the environment failed.
« sdk/lib/io/platform.dart ('K') | « sdk/lib/io/platform.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698