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

Unified Diff: pkg/front_end/lib/src/fasta/builder/mixin_application_builder.dart

Issue 2672993003: Handle type variables. (Closed)
Patch Set: Add comments. 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/builder/mixin_application_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/mixin_application_builder.dart b/pkg/front_end/lib/src/fasta/builder/mixin_application_builder.dart
index 86c3b2d6917c95d2ce4edea1e5a6279e85090432..6f6cbb79ec038c5e70bfb65508d88fe13e988a5d 100644
--- a/pkg/front_end/lib/src/fasta/builder/mixin_application_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/mixin_application_builder.dart
@@ -4,8 +4,12 @@
library fasta.mixin_application_builder;
+import '../errors.dart' show
+ internalError;
+
import 'builder.dart' show
- TypeBuilder;
+ TypeBuilder,
+ TypeDeclarationBuilder;
import 'scope.dart' show
Scope;
@@ -17,6 +21,8 @@ abstract class MixinApplicationBuilder<T extends TypeBuilder>
MixinApplicationBuilder(this.supertype, this.mixins);
+ String get name => null;
+
void resolveIn(Scope scope) {
supertype.resolveIn(scope);
for (T t in mixins) {
@@ -24,6 +30,10 @@ abstract class MixinApplicationBuilder<T extends TypeBuilder>
}
}
+ void bind(TypeDeclarationBuilder builder) {
+ internalError("Internal error: can't bind a mixin application.");
+ }
+
String get debugName => "MixinApplicationBuilder";
StringBuffer printOn(StringBuffer buffer) {
« no previous file with comments | « pkg/front_end/lib/src/fasta/builder/interface_type_builder.dart ('k') | pkg/front_end/lib/src/fasta/builder/type_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698