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

Unified Diff: pkg/front_end/lib/src/fasta/dill/dill_class_builder.dart

Issue 2689303003: Implement type variables in mixin applications. (Closed)
Patch Set: Restore duplication handling and set mixedInType. 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/dill/dill_class_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/dill/dill_class_builder.dart b/pkg/front_end/lib/src/fasta/dill/dill_class_builder.dart
index 4c97dd2006e9aaa8b22ce1ef1f4a852a44e4b919..6511ca85838093e6c985c985ab21755ec216fc8b 100644
--- a/pkg/front_end/lib/src/fasta/dill/dill_class_builder.dart
+++ b/pkg/front_end/lib/src/fasta/dill/dill_class_builder.dart
@@ -11,9 +11,13 @@ import 'package:kernel/ast.dart' show
Procedure,
ProcedureKind;
+import '../errors.dart' show
+ internalError;
+
import '../kernel/kernel_builder.dart' show
Builder,
- KernelClassBuilder;
+ KernelClassBuilder,
+ TypeBuilder;
import '../modifier.dart' show
abstractMask;
@@ -50,6 +54,12 @@ class DillClassBuilder extends KernelClassBuilder {
}
}
+ /// Returns true if this class is the result of applying a mixin to its
+ /// superclass.
+ bool get isMixinApplication => cls.isMixinApplication;
karlklose 2017/02/15 09:09:30 Should this be `isMixinApplicationBuilder`?
ahe 2017/02/15 09:36:50 Generally, I haven't used the Builder prefix in bo
karlklose 2017/02/15 09:43:57 It made sense to me to have a prefix here to make
+
+ TypeBuilder get mixedInType => internalError("Not implemented.");
+
Builder findConstructorOrFactory(String name) => constructors[name];
}

Powered by Google App Engine
This is Rietveld 408576698