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

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

Issue 2876813002: Implement generalized function types. (Closed)
Patch Set: Address comments. Created 3 years, 7 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 7b39f2baad1768916a3a764f25448ba2b750d345..07704f33779e6c338cafa865a5e395e559ec9466 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
@@ -621,8 +621,8 @@ class KernelLibraryBuilder
List<TypeVariableBuilder> typeVariables,
List<FormalParameterBuilder> formals,
int charOffset) {
- return new KernelFunctionTypeBuilder(
- charOffset, fileUri, returnType, typeVariables, formals);
+ return addType(new KernelFunctionTypeBuilder(
+ charOffset, fileUri, returnType, typeVariables, formals));
}
KernelFormalParameterBuilder addFormalParameter(
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart ('k') | pkg/front_end/lib/src/fasta/modifier.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698