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

Unified Diff: compiler/java/com/google/dart/compiler/UrlLibrarySource.java

Issue 9392017: This CL is part of a proposal to change the API of dartc's implementation of UrlSource. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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: compiler/java/com/google/dart/compiler/UrlLibrarySource.java
===================================================================
--- compiler/java/com/google/dart/compiler/UrlLibrarySource.java (revision 4151)
+++ compiler/java/com/google/dart/compiler/UrlLibrarySource.java (working copy)
@@ -34,7 +34,7 @@
public DartSource getSourceFor(final String relPath) {
try {
// Force the creation of an escaped relative URI to deal with spaces, etc.
- URI uri = getAbsoluteUri().resolve(new URI(null, null, relPath, null)).normalize();
+ URI uri = getUri().resolve(new URI(null, null, relPath, null)).normalize();
return new UrlDartSource(uri, relPath, this, systemLibraryManager);
} catch (URISyntaxException e) {
throw new AssertionError(e);
@@ -43,6 +43,6 @@
@Override
public LibrarySource getImportFor(String relPath) {
- return new UrlLibrarySource(getAbsoluteUri().resolve(relPath).normalize(), systemLibraryManager);
+ return new UrlLibrarySource(getUri().resolve(relPath).normalize(), systemLibraryManager);
}
}

Powered by Google App Engine
This is Rietveld 408576698