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

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

Issue 10544173: Update partial parser and scanner to be able to skip expressions like "new Map<S, T>()". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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/lib/compiler/implementation/scanner/scanner.dart
diff --git a/dart/lib/compiler/implementation/scanner/scanner.dart b/dart/lib/compiler/implementation/scanner/scanner.dart
index 2dd4d38891b8ceed534189afce0409ad42be88c2..d4fd88e15ff86f01497b75a263f7b8114f67c6b3 100644
--- a/dart/lib/compiler/implementation/scanner/scanner.dart
+++ b/dart/lib/compiler/implementation/scanner/scanner.dart
@@ -341,6 +341,7 @@ class AbstractScanner<T extends SourceString> implements Scanner {
int tokenizeEquals(int next) {
// = == ===
+ discardOpenLt();
next = advance();
if (next === $EQ) {
return select($EQ, EQ_EQ_EQ_INFO, EQ_EQ_INFO);

Powered by Google App Engine
This is Rietveld 408576698