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

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

Issue 9600059: Resolve constructors with type arguments. (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/parser.dart
diff --git a/dart/frog/leg/scanner/parser.dart b/dart/frog/leg/scanner/parser.dart
index 81b7ec82331a31cbb83260adea3a70afe79b2cd5..0c526e90dddd018511720e56f2d8a7e772d83333 100644
--- a/dart/frog/leg/scanner/parser.dart
+++ b/dart/frog/leg/scanner/parser.dart
@@ -297,8 +297,7 @@ class Parser {
int identifierCount = 1;
if (isIdentifier(token)) {
token = parseIdentifier(token);
- while (optional('.', token)) {
- // TODO(ahe): Validate that there are at most two identifiers.
+ if (optional('.', token)) {
token = parseIdentifier(token.next);
++identifierCount;
}

Powered by Google App Engine
This is Rietveld 408576698