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

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

Issue 10389097: Move dart:dom to dart:dom_deprecated (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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/SystemLibraryManager.java
diff --git a/compiler/java/com/google/dart/compiler/SystemLibraryManager.java b/compiler/java/com/google/dart/compiler/SystemLibraryManager.java
index ee06b332fa5fe861166dcf39b800d585af3fd7b1..3744f5fae379d8dfde58e6fc6f34e691c009252e 100644
--- a/compiler/java/com/google/dart/compiler/SystemLibraryManager.java
+++ b/compiler/java/com/google/dart/compiler/SystemLibraryManager.java
@@ -84,7 +84,7 @@ public class SystemLibraryManager {
}
/**
- * Expand a relative or short URI (e.g. "dart:dom") which is implementation independent to its
+ * Expand a relative or short URI (e.g. "dart:dom_deprecated") which is implementation independent to its
* full URI (e.g. "dart://dom/com/google/dart/domlib/dom.dart").
*
* @param uri the relative URI
@@ -113,7 +113,7 @@ public class SystemLibraryManager {
}
/**
- * Answer a collection of all bundled library URL specs (e.g. "dart:dom").
+ * Answer a collection of all bundled library URL specs (e.g. "dart:dom_deprecated").
*
* @return a collection of specs (not <code>null</code>, contains no <code>null</code>s)
*/
@@ -148,7 +148,7 @@ public class SystemLibraryManager {
}
/**
- * Expand a relative or short URI (e.g. "dart:dom") which is implementation independent to its
+ * Expand a relative or short URI (e.g. "dart:dom_deprecated") which is implementation independent to its
* full URI (e.g. "dart://dom/com/google/dart/domlib/dom.dart") and then translate that URI to
* a "file:" URI (e.g.
* "file:/some/install/directory/com/google/dart/domlib/dom.dart").
@@ -249,7 +249,7 @@ public class SystemLibraryManager {
String scheme = shortName.substring(0, index + 1);
String name = shortName.substring(index + 1);
index = name.indexOf('/');
- String host = index > 0 ? name.substring(0, index) : name;
+ String host = file.getParentFile().getName();
vsm 2012/05/11 19:38:43 I changed this to fix dartc lookup. It used to ma
addLib(scheme, host, name, file.getParentFile(), file.getName());
}
}
@@ -300,7 +300,7 @@ public class SystemLibraryManager {
/**
* Register system libraries for the "dart:" protocol such that dart:[shortLibName] (e.g.
- * "dart:dom") will automatically be expanded to dart://[host]/[pathToLib] (e.g.
+ * "dart:dom_deprecated") will automatically be expanded to dart://[host]/[pathToLib] (e.g.
* dart://dom/dom.dart)
*/
private void setLibraries(SystemLibrary[] newLibraries) {

Powered by Google App Engine
This is Rietveld 408576698