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

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

Issue 11938036: Hide collection-dev library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Allow dart:_collection-dev in dartc. Other fixes. Created 7 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
« no previous file with comments | « no previous file | runtime/vm/bootstrap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 63626bccb48cd3dc1b689333b4ab73c9bbe2b7d4..a86558ef4660cde66090403652308023eee14adc 100644
--- a/compiler/java/com/google/dart/compiler/SystemLibraryManager.java
+++ b/compiler/java/com/google/dart/compiler/SystemLibraryManager.java
@@ -138,7 +138,10 @@ public class SystemLibraryManager {
HashSet<String> explicitShortNames = new HashSet<String>();
for (Entry<String, DartLibrary> entry : declaredLibraries.entrySet()) {
- if (entry.getValue().getCategory().equals("Internal")){
+ if (entry.getValue().getCategory().equals("Internal")
+ // TODO(8365): the following line allows dart:_collection-dev to
+ // be imported even though it's a hidden library.
+ && !entry.getKey().equals("dart:_collection-dev")) {
continue;
}
String shortName = entry.getKey().trim();
« no previous file with comments | « no previous file | runtime/vm/bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698