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

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

Issue 2729943003: Recover from bad supertypes. (Closed)
Patch Set: Update status files. Created 3 years, 10 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_mixin_application_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_mixin_application_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_mixin_application_builder.dart
index c79e55f2a01cbd11624a0928d70a14b6fbc4f519..8b9d903425de08dcf0eac0c7471156b7a9261fbd 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_mixin_application_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_mixin_application_builder.dart
@@ -16,6 +16,7 @@ import 'kernel_builder.dart'
KernelNamedTypeBuilder,
KernelTypeBuilder,
KernelTypeVariableBuilder,
+ LibraryBuilder,
MixinApplicationBuilder,
TypeBuilder,
TypeVariableBuilder;
@@ -45,15 +46,17 @@ class KernelMixinApplicationBuilder
relativeFileUri = relativizeUri(fileUri),
super(supertype, mixins, charOffset, fileUri);
- InterfaceType build() => buildSupertype().asInterfaceType;
+ InterfaceType build(LibraryBuilder library) {
+ return buildSupertype(library)?.asInterfaceType;
+ }
- Supertype buildSupertype() {
+ Supertype buildSupertype(LibraryBuilder library) {
if (builtType != null) return builtType;
KernelTypeBuilder s = this.supertype;
for (KernelTypeBuilder builder in mixins) {
s = applyMixin(s, builder);
}
- builtType = s.buildSupertype();
+ builtType = s.buildSupertype(library);
return builtType;
}

Powered by Google App Engine
This is Rietveld 408576698