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

Unified Diff: dart/frog/leg/scanner/partial_parser.dart

Issue 9663047: Repeated prefixes and parser fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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: dart/frog/leg/scanner/partial_parser.dart
diff --git a/dart/frog/leg/scanner/partial_parser.dart b/dart/frog/leg/scanner/partial_parser.dart
index fa6ea9a8d30782862c8986155cb6aecdc5f56bb7..cc09ff6c90df5871a620e36a3a37f1e9b8c00279 100644
--- a/dart/frog/leg/scanner/partial_parser.dart
+++ b/dart/frog/leg/scanner/partial_parser.dart
@@ -20,6 +20,12 @@ class PartialParser extends Parser {
(value === ',') ||
(value === ']'))
return token;
+ if (value === '=' && token.next.stringValue === '{') {
ahe 2012/03/10 23:07:18 I should add a comment explaining this covers this
ahe 2012/03/11 13:01:50 Done.
+ BeginGroupToken begin = token.next;
+ token = (begin.endGroup !== null) ? begin.endGroup : token;
+ token = token.next;
+ continue;
+ }
if (!mayParseFunctionExpressions && value === '{')
return token;
if ((value !== '<') && (token is BeginGroupToken)) {

Powered by Google App Engine
This is Rietveld 408576698