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

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

Issue 2988373002: Store parts in Kernel Library, resynthesize parts in Analyzer. (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
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart ('k') | pkg/kernel/lib/ast.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d8df4f86fc88338d1476241da82eef9b8281e558 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(<Expression>[], fileUri));
+ }
+
library.name = name;
library.procedures.sort(compareProcedures);
return library;
« no previous file with comments | « pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart ('k') | pkg/kernel/lib/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698