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

Unified Diff: pkg/compiler/lib/src/library_loader.dart

Issue 2005293003: Compute import paths using ImportElement and ExportElement (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Compute members eagerly. Created 4 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: pkg/compiler/lib/src/library_loader.dart
diff --git a/pkg/compiler/lib/src/library_loader.dart b/pkg/compiler/lib/src/library_loader.dart
index b684a4f64eb18980f9a5eeff147780ffb2b3126b..efb4893b3940cce97d6f02680b52d4109b603609 100644
--- a/pkg/compiler/lib/src/library_loader.dart
+++ b/pkg/compiler/lib/src/library_loader.dart
@@ -1390,8 +1390,6 @@ class _LoadedLibraries implements LoadedLibraries {
suffixChainMap[library] = const <Link<Uri>>[];
List<Link<Uri>> suffixes = [];
if (targetUri != canonicalUri) {
- LibraryDependencyNode node = nodeMap[library];
-
/// Process the import (or export) of [importedLibrary].
void processLibrary(LibraryElement importedLibrary) {
bool suffixesArePrecomputed =
@@ -1422,12 +1420,12 @@ class _LoadedLibraries implements LoadedLibraries {
}
}
- for (ImportLink import in node.imports.reverse()) {
+ for (ImportElement import in library.imports) {
processLibrary(import.importedLibrary);
if (aborted) return;
}
- for (LibraryElement exportedLibrary in node.exports.reverse()) {
- processLibrary(exportedLibrary);
+ for (ExportElement export in library.exports) {
+ processLibrary(export.exportedLibrary);
if (aborted) return;
}
} else {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/serialization/modelz.dart » ('j') | pkg/compiler/lib/src/serialization/modelz.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698