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

Unified Diff: sdk/lib/_internal/compiler/implementation/filenames.dart

Issue 13797002: Change MirrorSystem.libraries to Map<Uri, String> (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 8 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
Index: sdk/lib/_internal/compiler/implementation/filenames.dart
diff --git a/sdk/lib/_internal/compiler/implementation/filenames.dart b/sdk/lib/_internal/compiler/implementation/filenames.dart
index 198a28f38822e46cb25223cb04c6ab104cf00ac6..46bc421a1cc75abe7d902f19b155915ef3bc0765 100644
--- a/sdk/lib/_internal/compiler/implementation/filenames.dart
+++ b/sdk/lib/_internal/compiler/implementation/filenames.dart
@@ -21,9 +21,8 @@ String uriPathToNative(String path) {
return new Path(path).toNativePath();
}
-Uri getCurrentDirectory() {
- final String dir = nativeToUriPath(new File('.').fullPathSync());
- return new Uri.fromComponents(scheme: 'file', path: appendSlash(dir));
-}
+final Uri currentDirectory = new Uri.fromComponents(
+ scheme: 'file',
+ path: appendSlash(nativeToUriPath(new File('.').fullPathSync())));
String appendSlash(String path) => path.endsWith('/') ? path : '$path/';

Powered by Google App Engine
This is Rietveld 408576698