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 eb7a89993d1e2e14cc9b39bf73c997a7d45ba42f..b67aef664f2c0d785432f132af271c87787230e4 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 |
@@ -759,6 +759,7 @@ class KernelLibraryBuilder |
combinators: toKernelCombinators(import.combinators))); |
} |
} |
+ |
for (Export export in exports) { |
var exportedBuilder = export.exported; |
Library exportedLibrary; |
@@ -772,6 +773,14 @@ class KernelLibraryBuilder |
combinators: toKernelCombinators(export.combinators))); |
} |
} |
+ |
+ for (var part in parts) { |
+ // TODO(scheglov): Add support for annotations, see |
+ // https://github.com/dart-lang/sdk/issues/30284. |
+ String fileUri = part.fileUri.toString(); |
+ library.addPart(new LibraryPart([], fileUri)); |
ahe
2017/08/03 10:43:47
Add type on list literal.
scheglov
2017/08/03 17:25:56
Done.
|
+ } |
+ |
library.name = name; |
library.procedures.sort(compareProcedures); |
return library; |