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 ea88a085c9cc5f62d146e48081f74084372e9abb..6da7ac38f2ef23b183a3c19270af8844c1e070df 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 |
@@ -100,10 +100,21 @@ class RetainedDataBuilder extends RetainedData { |
markLibrary(cls.parent); |
// TODO(sigmund): retain annotations? |
// visitList(cls.annotations, this); |
+ cls.typeParameters.forEach((t) => t.bound.accept(typeMarker)); |
markSupertype(cls.supertype); |
markSupertype(cls.mixedInType); |
cls.implementedTypes.forEach(markSupertype); |
- cls.typeParameters.forEach((t) => t.bound.accept(typeMarker)); |
+ |
+ for (var field in cls.fields) { |
+ if (!field.isStatic && !field.name.isPrivate) { |
+ markMember(field); |
+ } |
+ } |
+ for (var method in cls.procedures) { |
+ if (!method.isStatic && !method.name.isPrivate) { |
+ markMember(method); |
+ } |
+ } |
} |
/// Mark the typedef. |