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

Unified Diff: sdk/lib/_internal/compiler/implementation/mirrors_used.dart

Issue 330913004: Move Compiler.libraries to LibraryLoader. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix compiler_isolate.dart Created 6 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
Index: sdk/lib/_internal/compiler/implementation/mirrors_used.dart
diff --git a/sdk/lib/_internal/compiler/implementation/mirrors_used.dart b/sdk/lib/_internal/compiler/implementation/mirrors_used.dart
index 5285027c9335163caf7fec09806702d61210cdee..27d505cb42e966ca2059da76debe2514f2e1fd9e 100644
--- a/sdk/lib/_internal/compiler/implementation/mirrors_used.dart
+++ b/sdk/lib/_internal/compiler/implementation/mirrors_used.dart
@@ -175,7 +175,7 @@ class MirrorUsageAnalyzer {
/// compute which libraries have the annotation (which is used by
/// [MirrorUsageAnalyzerTask.hasMirrorUsage]).
void run() {
- wildcard = compiler.libraries.values.toList();
+ wildcard = compiler.libraryLoader.libraries.toList();
Map<LibraryElement, List<MirrorUsage>> usageMap =
collectMirrorsUsedAnnotation();
propagateOverrides(usageMap);
@@ -195,7 +195,7 @@ class MirrorUsageAnalyzer {
Map<LibraryElement, List<MirrorUsage>> collectMirrorsUsedAnnotation() {
Map<LibraryElement, List<MirrorUsage>> result =
new Map<LibraryElement, List<MirrorUsage>>();
- for (LibraryElement library in compiler.libraries.values) {
+ for (LibraryElement library in compiler.libraryLoader.libraries) {
if (library.isInternalLibrary) continue;
for (LibraryTag tag in library.tags) {
Import importTag = tag.asImport();
@@ -471,7 +471,7 @@ class MirrorUsageBuilder {
String string = entry;
LibraryElement libraryCandiate;
String libraryNameCandiate;
- for (LibraryElement l in compiler.libraries.values) {
+ for (LibraryElement l in compiler.libraryLoader.libraries) {
if (l.hasLibraryName()) {
String libraryName = l.getLibraryOrScriptName();
if (string == libraryName) {

Powered by Google App Engine
This is Rietveld 408576698