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 c31c255fad35df059bfe5428fec957e243082c4e..bcfe08c6471fced2c77062e921b77c0f9e934c0d 100644 |
--- a/pkg/kernel/lib/binary/ast_from_binary.dart |
+++ b/pkg/kernel/lib/binary/ast_from_binary.dart |
@@ -387,6 +387,7 @@ class BinaryBuilder { |
_skipNodeList(readExpression); |
} |
_readLibraryDependencies(library); |
+ _readAdditionalExports(library); |
_readLibraryParts(library); |
_mergeNamedNodeList(library.typedefs, readTypedef, library); |
_mergeNamedNodeList(library.classes, readClass, library); |
@@ -417,6 +418,17 @@ class BinaryBuilder { |
} |
} |
+ void _readAdditionalExports(Library library) { |
+ int numExportedReference = readUInt(); |
+ if (numExportedReference != 0) { |
+ for (int i = 0; i < numExportedReference; i++) { |
+ CanonicalName exportedName = readCanonicalNameReference(); |
+ Reference reference = exportedName.getReference(); |
+ library.additionalExports.add(reference); |
+ } |
+ } |
+ } |
+ |
Combinator readCombinator() { |
var isShow = readUInt() == 1; |
var names = readStringReferenceList(); |