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

Unified Diff: sdk/lib/_internal/compiler/implementation/source_file_provider.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/source_file_provider.dart
diff --git a/sdk/lib/_internal/compiler/implementation/source_file_provider.dart b/sdk/lib/_internal/compiler/implementation/source_file_provider.dart
index b75ba4ada2f2c760fff15ae8b0d920cdd8d1ced9..70659e075b330f37f6486c3efaf7f93a7b44bb27 100644
--- a/sdk/lib/_internal/compiler/implementation/source_file_provider.dart
+++ b/sdk/lib/_internal/compiler/implementation/source_file_provider.dart
@@ -27,7 +27,7 @@ String readAll(String filename) {
class SourceFileProvider {
bool isWindows = (Platform.operatingSystem == 'windows');
- Uri cwd = getCurrentDirectory();
+ Uri cwd = currentDirectory;
Map<String, SourceFile> sourceFiles = <String, SourceFile>{};
int dartCharactersRead = 0;
@@ -43,8 +43,8 @@ class SourceFileProvider {
'(${ex.osError}).';
}
dartCharactersRead += source.length;
- sourceFiles[resourceUri.toString()] =
- new SourceFile(relativize(cwd, resourceUri, isWindows), source);
+ sourceFiles[resourceUri.toString()] = new SourceFile(
+ relativize(cwd, resourceUri, isWindows), source);
return new Future.value(source);
}
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart ('k') | tests/compiler/dart2js/analyze_api_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698