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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/UriResolver.java

Issue 11745013: Rename two classes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 12 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/UriResolver.java
===================================================================
--- editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/UriResolver.java (revision 16603)
+++ editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/UriResolver.java (working copy)
@@ -66,10 +66,10 @@
* @return a {@link Source source} representing the URI to which given URI was resolved
*/
protected Source resolveRelative(SourceFactory factory, Source containingSource, URI containedUri) {
- if (containingSource instanceof SourceImpl) {
+ if (containingSource instanceof FileBasedSource) {
try {
- URI resolvedUri = ((SourceImpl) containingSource).getFile().toURI().resolve(containedUri).normalize();
- return new SourceImpl(factory, new File(resolvedUri));
+ URI resolvedUri = ((FileBasedSource) containingSource).getFile().toURI().resolve(containedUri).normalize();
+ return new FileBasedSource(factory, new File(resolvedUri));
} catch (Exception exception) {
// Fall through to return null
}

Powered by Google App Engine
This is Rietveld 408576698