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

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

Issue 2746543007: Revert "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
« no previous file with comments | « pkg/compiler/lib/src/tree/unparser.dart ('k') | pkg/front_end/lib/src/fasta/scanner/abstract_scanner.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/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 74b9929e2b6d232a57e34869ca6ef749c46b4d6f..d20a5a3bdc927426b35e945aeec30786157c6fd2 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -492,10 +492,6 @@ class Parser {
token = parseOptionalFormalParameters(token, true,
inFunctionType: inFunctionType);
break;
- } else if (identical(value, '[]')) {
- reportRecoverableError(token,
- ErrorKind.EmptyOptionalParameterList);
- break;
}
token = parseFormalParameter(token, FormalParameterType.REQUIRED,
inFunctionType: inFunctionType);
« no previous file with comments | « pkg/compiler/lib/src/tree/unparser.dart ('k') | pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698