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

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

Issue 3008763002: Store actual Reference(s) for additional exports. (Closed)
Patch Set: Created 3 years, 4 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 be192ac8601b6c0bc89dcf91fcbc723adf5d9df4..301c96bb72724cc22944b356d312b93003713613 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