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

Unified Diff: pkg/dev_compiler/lib/src/compiler/code_generator.dart

Issue 2435203002: Emit API-only summaries (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | pkg/dev_compiler/lib/src/compiler/command.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/src/compiler/code_generator.dart
diff --git a/pkg/dev_compiler/lib/src/compiler/code_generator.dart b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
index 221d94ca9bdec9c773ecbd8bd8371ab22c711948..a4ab6156d39a8a8c18054e7615742f5bb23e7b4e 100644
--- a/pkg/dev_compiler/lib/src/compiler/code_generator.dart
+++ b/pkg/dev_compiler/lib/src/compiler/code_generator.dart
@@ -217,7 +217,10 @@ class CodeGenerator extends GeneralizingAstVisitor
true)
.forEach(assembler.addLinkedLibrary);
- return assembler.assemble().toBuffer();
+ var bundle = assembler.assemble();
+ // Preserve only API-level information in the summary.
+ bundle.flushInformative();
+ return bundle.toBuffer();
}
JS.Program _emitModule(List<CompilationUnit> compilationUnits) {
« no previous file with comments | « no previous file | pkg/dev_compiler/lib/src/compiler/command.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698