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

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

Issue 3009953003: Store actual Reference(s) for additional exports. (Closed)
Patch Set: Use references, but keep JSON hacks for errors and void/dynamic. Created 3 years, 3 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_to_binary.dart
diff --git a/pkg/kernel/lib/binary/ast_to_binary.dart b/pkg/kernel/lib/binary/ast_to_binary.dart
index 23eaefd97854a97872b79e9ddfc035fc57c11b1f..ec8f413fd23cce9d87662698619e458173f62d5e 100644
--- a/pkg/kernel/lib/binary/ast_to_binary.dart
+++ b/pkg/kernel/lib/binary/ast_to_binary.dart
@@ -312,6 +312,7 @@ class BinaryPrinter extends Visitor {
writeUriReference(node.fileUri ?? '');
writeAnnotationList(node.annotations);
writeLibraryDependencies(node);
+ writeAdditionalExports(node);
writeLibraryParts(node);
writeNodeList(node.typedefs);
writeNodeList(node.classes);
@@ -331,6 +332,13 @@ class BinaryPrinter extends Visitor {
}
}
+ void writeAdditionalExports(Library library) {
+ writeUInt30(library.additionalExports.length);
+ for (Reference ref in library.additionalExports) {
+ writeReference(ref);
+ }
+ }
+
void writeLibraryDependency(LibraryDependency node) {
writeByte(node.flags);
writeNodeList(node.annotations);

Powered by Google App Engine
This is Rietveld 408576698