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

Unified Diff: lib/compiler/implementation/scanner/partial_parser.dart

Issue 10800027: Fixed tests so they do indeed confirm that values on optional named parameters are not allowed. Add… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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: lib/compiler/implementation/scanner/partial_parser.dart
diff --git a/lib/compiler/implementation/scanner/partial_parser.dart b/lib/compiler/implementation/scanner/partial_parser.dart
index 2199ddef8c6bdf8239b9c0764a0e17d96ad9cf9c..14f18efb51eb4fb9f94a960c227d0b0f8c2d72a2 100644
--- a/lib/compiler/implementation/scanner/partial_parser.dart
+++ b/lib/compiler/implementation/scanner/partial_parser.dart
@@ -90,7 +90,7 @@ class PartialParser extends Parser {
return token;
}
- Token parseFormalParameters(Token token) => skipFormals(token);
+ Token parseFormalParameters(Token token, [bool allowValuesForNamedOptionalParams = true]) => skipFormals(token);
Token skipFormals(Token token) {
listener.beginOptionalFormalParameters(token);

Powered by Google App Engine
This is Rietveld 408576698