Index: pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
index 6d5b54e80e75bfd4c06cc8538fa74eab7c5ab867..0bc0c8797447a4a3167f58a23444876c14f14afa 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
@@ -4,6 +4,8 @@ |
library fasta.kernel_library_builder; |
+import 'dart:convert' show JSON; |
+ |
import 'package:front_end/src/fasta/combinator.dart' as fasta; |
import 'package:front_end/src/fasta/export.dart'; |
import 'package:front_end/src/fasta/import.dart'; |
@@ -783,7 +785,10 @@ class KernelLibraryBuilder |
library.procedures.sort(compareProcedures); |
if (additionalExports != null) { |
- library.additionalExports.addAll(additionalExports); |
+ library.addMember(new Field(new Name("_exports#", library), |
+ initializer: new StringLiteral(JSON.encode(additionalExports)), |
+ isStatic: true, |
+ isConst: true)); |
} |
return library; |