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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_target.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 | « pkg/front_end/lib/src/fasta/fasta.dart ('k') | pkg/front_end/lib/src/fasta/kernel/utils.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_target.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
index 77ded1968b6230e5de4b319db3df5857ee0925ac..b7ec22eb16116749c8b57b6734065754180da33f 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
@@ -695,6 +695,12 @@ class KernelTarget extends TargetImplementation {
new RootsMarker(data).run(_program, isIncluded);
trimProgram(_program, data, isIncluded);
}
+
+ /// Return `true` if the given [library] was built by this [KernelTarget]
+ /// from sources, and not loaded from a [DillTarget].
+ bool isSourceLibrary(Library library) {
+ return loader.libraries.contains(library);
+ }
}
/// Looks for a constructor call that matches `super()` from a constructor in
« no previous file with comments | « pkg/front_end/lib/src/fasta/fasta.dart ('k') | pkg/front_end/lib/src/fasta/kernel/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698