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

Unified Diff: pkg/kernel/lib/binary/ast_from_binary.dart

Issue 2987553002: Add import dependencies to Kernel libraries and use them to resynthesize ImportElement(s) in Analyz… (Closed)
Patch Set: 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/kernel/lib/binary/ast_from_binary.dart
diff --git a/pkg/kernel/lib/binary/ast_from_binary.dart b/pkg/kernel/lib/binary/ast_from_binary.dart
index 3d556eb82bc75aead025532c4a3c49a00492c0ff..ca70d671e20bc3ea9c4dfd385413b183bc67b85c 100644
--- a/pkg/kernel/lib/binary/ast_from_binary.dart
+++ b/pkg/kernel/lib/binary/ast_from_binary.dart
@@ -399,10 +399,6 @@ class BinaryBuilder {
void _readLibraryDependencies(Library library) {
int length = readUInt();
- if (library.isExternal) {
- assert(length == 0);
Siggi Cherem (dart-lang) 2017/07/20 18:29:00 do we need the library dependencies for external l
scheglov 2017/07/20 19:33:53 Analyzer's LibraryElement has "imports" that shoul
Siggi Cherem (dart-lang) 2017/07/20 22:50:36 I see - I understand now. Thanks for the explanati
scheglov 2017/07/21 16:21:33 I agree about external libraries. And we don't nee
- return;
- }
library.dependencies.length = length;
for (int i = 0; i < length; ++i) {
var flags = readByte();

Powered by Google App Engine
This is Rietveld 408576698