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

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

Issue 2893233003: Let printProgramText() to use filter to print only some libraries. (Closed)
Patch Set: Created 3 years, 7 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/front_end/lib/src/fasta/kernel/kernel_target.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/fasta.dart
diff --git a/pkg/front_end/lib/src/fasta/fasta.dart b/pkg/front_end/lib/src/fasta/fasta.dart
index b6bc4707f3794f1aede92504d328aad9ac0eca24..dc5745a288858b421f12d9c33de72aa5d426f2bc 100644
--- a/pkg/front_end/lib/src/fasta/fasta.dart
+++ b/pkg/front_end/lib/src/fasta/fasta.dart
@@ -148,7 +148,7 @@ class CompileTask {
await dillTarget.buildOutlines();
var outline = await kernelTarget.buildOutlines();
if (c.options.dumpIr && output != null) {
- printProgramText(outline);
+ printProgramText(outline, libraryFilter: kernelTarget.isSourceLibrary);
}
if (output != null) {
await writeProgramToFile(outline, output);
@@ -162,7 +162,9 @@ class CompileTask {
if (exitCode != 0) return null;
Uri uri = c.options.output;
var program = await kernelTarget.buildProgram(verify: c.options.verify);
- if (c.options.dumpIr) printProgramText(program);
+ if (c.options.dumpIr) {
+ printProgramText(program, libraryFilter: kernelTarget.isSourceLibrary);
+ }
await writeProgramToFile(program, uri);
ticker.logMs("Wrote program to ${uri.toFilePath()}");
return uri;
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_target.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698