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

Unified Diff: pkg/kernel/lib/binary/ast_from_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_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();

Powered by Google App Engine
This is Rietveld 408576698