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

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

Issue 9958074: Ensure usage of short form (e.g. dart:io rather than dart://io/io_runtime.dart) if available (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
===================================================================
--- compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java (revision 6094)
+++ compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java (working copy)
@@ -114,6 +114,13 @@
if( null == this.systemLibraryManager.expandRelativeDartUri(systemUri) ) {
return null;
}
+
+ // Ensure we are using the short form if it exists
+ URI shortUri = systemLibraryManager.getShortUri(systemUri);
+ if (shortUri != null) {
+ systemUri = shortUri;
+ }
+
return new UrlLibrarySource(systemUri, this.systemLibraryManager);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698