Index: pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart |
index 4a27da8c649af1c71cbe1bf68fb9cee371e4606a..bb18d8420e5d643b0a8b85cf85c630f170f5adf2 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart |
@@ -162,8 +162,10 @@ class TypeMarker extends DartTypeVisitor { |
// TODO(sigmund): delete. We should collect this information while |
// building kernel without having to run a visitor afterwards. |
class RootsMarker extends RecursiveVisitor { |
+ final CoreTypes coreTypes; |
final RetainedDataBuilder data; |
- RootsMarker(this.data); |
+ |
+ RootsMarker(this.coreTypes, this.data); |
void run(Program program, bool isIncluded(Uri uri)) { |
markRequired(program); |
@@ -180,7 +182,6 @@ class RootsMarker extends RecursiveVisitor { |
// TODO(sigmund): consider being more fine-grained and only marking what is |
// seen and used. |
void markRequired(Program program) { |
- var coreTypes = new CoreTypes(program); |
coreTypes.objectClass.members.forEach(data.markMember); |
// These are assumed to be available by fasta: |