Index: pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
index ab474f7342e1a2886686f9ac71d668136dea0961..219bb0e769466f03bddd1b99307cf79a8d9c535d 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart |
@@ -145,7 +145,9 @@ class KernelLibraryBuilder |
className, |
typeVariables, |
applyMixins(supertype, |
- subclassName: className, typeVariables: typeVariables), |
+ isSyntheticMixinImplementation: true, |
+ subclassName: className, |
+ typeVariables: typeVariables), |
interfaces, |
classScope, |
constructorScope, |
@@ -217,6 +219,7 @@ class KernelLibraryBuilder |
KernelTypeBuilder supertype, KernelTypeBuilder mixin, String signature, |
{String documentationComment, |
List<MetadataBuilder> metadata, |
+ bool isSyntheticMixinImplementation: false, |
String name, |
List<TypeVariableBuilder> typeVariables, |
int modifiers: abstractMask, |
@@ -254,6 +257,8 @@ class KernelLibraryBuilder |
charOffset, |
null, |
mixin); |
+ builder.cls.isSyntheticMixinImplementation = |
+ isSyntheticMixinImplementation; |
addBuilder(name, builder, charOffset); |
if (!isNamed) { |
mixinApplicationClasses[name] = builder; |
@@ -265,6 +270,7 @@ class KernelLibraryBuilder |
KernelTypeBuilder applyMixins(KernelTypeBuilder type, |
{List<MetadataBuilder> metadata, |
+ bool isSyntheticMixinImplementation: false, |
String name, |
String subclassName, |
List<TypeVariableBuilder> typeVariables, |
@@ -407,6 +413,7 @@ class KernelLibraryBuilder |
checkArguments(supertype); |
checkArguments(mixin); |
supertype = applyMixin(supertype, mixin, signature, |
+ isSyntheticMixinImplementation: true, |
typeVariables: |
new List<TypeVariableBuilder>.from(variables.values)); |
} |
@@ -447,6 +454,7 @@ class KernelLibraryBuilder |
KernelNamedTypeBuilder t = applyMixin(supertype, mixin, signature, |
metadata: metadata, |
name: name, |
+ isSyntheticMixinImplementation: isSyntheticMixinImplementation, |
typeVariables: typeVariables, |
modifiers: modifiers, |
interfaces: interfaces, |