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

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

Issue 2744463003: update fasta scanner to always generate INDEX or INDEX_EQ tokens (Closed)
Patch Set: Created 3 years, 9 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 ecbe4830c05cf231681d0b393da6e1064ca9ef96..410e465229f9364274143149a225d4daab98a441 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -492,6 +492,10 @@ class Parser {
token = parseOptionalFormalParameters(token, true,
inFunctionType: inFunctionType);
break;
+ } else if (identical(value, '[]')) {
+ reportRecoverableError(token,
ahe 2017/03/09 12:45:18 Nice. This should work well with endFormalParamete
+ ErrorKind.EmptyOptionalParameterList);
+ break;
}
token = parseFormalParameter(token, FormalParameterType.REQUIRED,
inFunctionType: inFunctionType);

Powered by Google App Engine
This is Rietveld 408576698