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

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

Issue 2689283012: Fix type of NamedTypeBuilder.builder. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_named_type_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/builder/named_type_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/named_type_builder.dart b/pkg/front_end/lib/src/fasta/builder/named_type_builder.dart
index deea9a81c4f46cb296a7a9ef1af3cb3fd2fd2e4b..5dda8b51ed226937f49bdceba5497964aa9b435e 100644
--- a/pkg/front_end/lib/src/fasta/builder/named_type_builder.dart
+++ b/pkg/front_end/lib/src/fasta/builder/named_type_builder.dart
@@ -14,19 +14,17 @@ import 'builder.dart' show
TypeBuilder,
TypeDeclarationBuilder;
-abstract class NamedTypeBuilder<T extends TypeBuilder> extends TypeBuilder {
+abstract class NamedTypeBuilder<T extends TypeBuilder, R> extends TypeBuilder {
final String name;
final List<T> arguments;
- TypeDeclarationBuilder get builder;
-
- void set builder(covariant TypeDeclarationBuilder b);
+ TypeDeclarationBuilder<T, R> builder;
NamedTypeBuilder(this.name, this.arguments, int charOffset, Uri fileUri)
: super(charOffset, fileUri);
- InvalidTypeBuilder buildInvalidType(String name);
+ InvalidTypeBuilder<T, R> buildInvalidType(String name);
void bind(TypeDeclarationBuilder builder) {
this.builder = builder;
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_named_type_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698