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 84eca8bbc642bb46ef295f898002b3956153d748..6446fe5d06ea0a35aaa47c6a6da88ddf9568b803 100644 |
--- a/pkg/kernel/lib/binary/limited_ast_to_binary.dart |
+++ b/pkg/kernel/lib/binary/limited_ast_to_binary.dart |
@@ -17,6 +17,18 @@ class LimitedBinaryPrinter extends BinaryPrinter { |
: super(sink, stringIndexer: new ReferencesStringIndexer()); |
@override |
+ void computeCanonicalNames(Program program) { |
+ for (var library in program.libraries) { |
+ if (predicate(library)) { |
+ program.root |
+ .getChildFromUri(library.importUri) |
+ .bindTo(library.reference); |
+ library.computeCanonicalNames(); |
+ } |
+ } |
+ } |
+ |
+ @override |
void addCanonicalNamesForLinkTable(List<CanonicalName> list) { |
ReferencesStringIndexer stringIndexer = this.stringIndexer; |
stringIndexer.referencedNames.forEach((name) { |