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

Unified Diff: dart/lib/compiler/implementation/scanner/scanner_task.dart

Issue 9866006: Add library mapping. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 8 years, 9 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
« no previous file with comments | « dart/lib/compiler/implementation/library_map.dart ('k') | dart/utils/compiler/build_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/scanner/scanner_task.dart
diff --git a/dart/lib/compiler/implementation/scanner/scanner_task.dart b/dart/lib/compiler/implementation/scanner/scanner_task.dart
index d0a09b680ae26f03fb0ae604f2e911de9876a881..505ed81c8e6151f40e9f9deed4c1beeaab20b47b 100644
--- a/dart/lib/compiler/implementation/scanner/scanner_task.dart
+++ b/dart/lib/compiler/implementation/scanner/scanner_task.dart
@@ -35,8 +35,7 @@ class ScannerTask extends CompilerTask {
}
LinkBuilder<ScriptTag> imports = new LinkBuilder<ScriptTag>();
- Uri cwd = new Uri(scheme: 'file', path: compiler.currentDirectory);
- Uri base = cwd.resolve(library.script.name.toString());
+ Uri base = library.script.uri;
for (ScriptTag tag in library.tags.reverse()) {
StringNode argument = tag.argument;
// TODO(lrn): Support interpolations here. We need access to the
« no previous file with comments | « dart/lib/compiler/implementation/library_map.dart ('k') | dart/utils/compiler/build_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698