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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart

Issue 3008763002: Store actual Reference(s) for additional exports. (Closed)
Patch Set: Fixes for review comments. 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/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 0bc0c8797447a4a3167f58a23444876c14f14afa..6d5b54e80e75bfd4c06cc8538fa74eab7c5ab867 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,8 +4,6 @@
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';
@@ -785,10 +783,7 @@ class KernelLibraryBuilder
library.procedures.sort(compareProcedures);
if (additionalExports != null) {
- library.addMember(new Field(new Name("_exports#", library),
- initializer: new StringLiteral(JSON.encode(additionalExports)),
- isStatic: true,
- isConst: true));
+ library.additionalExports.addAll(additionalExports);
}
return library;

Powered by Google App Engine
This is Rietveld 408576698