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

Unified Diff: dart/lib/compiler/implementation/apiimpl.dart

Issue 10535146: Don't canonicalize dart-URIs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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: dart/lib/compiler/implementation/apiimpl.dart
diff --git a/dart/lib/compiler/implementation/apiimpl.dart b/dart/lib/compiler/implementation/apiimpl.dart
index c1dbfcd0a4d97f40f2a0cded0f49abbc0b15389f..0801e23364a3f67939d6bf27d0c505c22e1e727a 100644
--- a/dart/lib/compiler/implementation/apiimpl.dart
+++ b/dart/lib/compiler/implementation/apiimpl.dart
@@ -43,6 +43,7 @@ class Compiler extends leg.Compiler {
}
leg.Script readScript(Uri uri, [tree.Node node]) {
+ if (uri.scheme == 'dart') uri = translateDartUri(uri, node);
var translated = translateUri(uri, node);
String text = "";
try {
@@ -64,7 +65,6 @@ class Compiler extends leg.Compiler {
Uri translateUri(Uri uri, tree.Node node) {
switch (uri.scheme) {
- case 'dart': return translateDartUri(uri, node);
case 'package': return translatePackageUri(uri, node);
default: return uri;
}
« 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