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

Unified Diff: pkg/front_end/lib/src/fasta/parser/parser.dart

Issue 2720763003: Add support for field formal function typed formal parameters. (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
Index: pkg/front_end/lib/src/fasta/parser/parser.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart
index 2a58ae6dbfcc3a8c525a84b269a5f7552ef7dc96..8a59815db2d0f05bba5f3c01e2f27d3377a2d4af 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -538,7 +538,8 @@ class Parser {
listener.beginFunctionTypedFormalParameter(token);
listener.handleNoTypeVariables(token);
token = parseFormalParameters(token);
- listener.endFunctionTypedFormalParameter(token);
+ listener.endFunctionTypedFormalParameter(
+ covariantKeyword, thisKeyword, kind);
// Generalized function types don't allow inline function types.
// The following isn't allowed:
// int Function(int bar(String x)).
@@ -551,7 +552,8 @@ class Parser {
listener.beginFunctionTypedFormalParameter(token);
token = parseTypeVariablesOpt(token);
token = parseFormalParameters(token);
- listener.endFunctionTypedFormalParameter(token);
+ listener.endFunctionTypedFormalParameter(
+ covariantKeyword, thisKeyword, kind);
// Generalized function types don't allow inline function types.
// The following isn't allowed:
// int Function(int bar(String x)).
« no previous file with comments | « pkg/front_end/lib/src/fasta/parser/listener.dart ('k') | pkg/front_end/lib/src/fasta/source/outline_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698