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

Unified Diff: pkg/front_end/lib/src/kernel_generator_impl.dart

Issue 2987553002: Add import dependencies to Kernel libraries and use them to resynthesize ImportElement(s) in Analyz… (Closed)
Patch Set: Fixes for review comments. Created 3 years, 5 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/front_end/lib/src/kernel_generator_impl.dart
diff --git a/pkg/front_end/lib/src/kernel_generator_impl.dart b/pkg/front_end/lib/src/kernel_generator_impl.dart
index 8dd871af4bbda05d5e6ae60740b3f39ff1b49cd3..393aa00c616dfcc2a19c90fb1b1541ca42e3297b 100644
--- a/pkg/front_end/lib/src/kernel_generator_impl.dart
+++ b/pkg/front_end/lib/src/kernel_generator_impl.dart
@@ -75,7 +75,10 @@ Future<CompilerResult> generateKernelInternal(
}
// All summaries are considered external and shouldn't include source-info.
- dillTarget.loader.libraries.forEach((lib) => lib.isExternal = true);
+ dillTarget.loader.libraries.forEach((lib) {
+ lib.isExternal = true;
+ lib.dependencies.clear();
+ });
// Linked dependencies are meant to be part of the program so they are not
// marked external.
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart ('k') | pkg/kernel/lib/text/ast_to_text.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698