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

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

Issue 2965503005: [kernel] Fix front_end after previous commit (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/binary/limited_ast_to_binary.dart
diff --git a/pkg/kernel/lib/binary/limited_ast_to_binary.dart b/pkg/kernel/lib/binary/limited_ast_to_binary.dart
index 6446fe5d06ea0a35aaa47c6a6da88ddf9568b803..12e768b2e679698ff0f9f93364d017c2473f68f5 100644
--- a/pkg/kernel/lib/binary/limited_ast_to_binary.dart
+++ b/pkg/kernel/lib/binary/limited_ast_to_binary.dart
@@ -62,6 +62,12 @@ class LimitedBinaryPrinter extends BinaryPrinter {
if (node is Library && !predicate(node)) return;
node.accept(this);
}
+
+ @override
+ void writeProgramIndex(Program program, List<Library> libraries) {
+ var librariesToWrite = libraries.where(predicate).toList();
+ super.writeProgramIndex(program, librariesToWrite);
+ }
}
/// Extension of [StringIndexer] that also indexes canonical names of
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698