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

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

Issue 2982373002: Resynthesize mixins from Kernel. (Closed)
Patch Set: Created 3 years, 5 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
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,

Powered by Google App Engine
This is Rietveld 408576698