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

Unified Diff: runtime/vm/parser.cc

Issue 2411633002: Add `=` as default-value separator for named parameters. (Closed)
Patch Set: Add co19 issue number Created 4 years, 2 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/parser/parser.dart ('k') | tests/co19/co19-co19.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 66ef0266d7308c442f0e3b5cd2cd2e0adde872d8..20886521af0a5993768a3d703782d2f5aef9808b 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -2185,7 +2185,7 @@ void Parser::ParseFormalParameter(bool allow_explicit_default_value,
if (params->has_optional_positional_parameters) {
ExpectToken(Token::kASSIGN);
} else {
- ExpectToken(Token::kCOLON);
+ ConsumeToken();
}
params->num_optional_parameters++;
params->has_explicit_default_values = true; // Also if explicitly NULL.
« no previous file with comments | « pkg/compiler/lib/src/parser/parser.dart ('k') | tests/co19/co19-co19.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698