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

Unified Diff: compiler/java/com/google/dart/compiler/parser/Token.java

Issue 10696056: Fix for issues 3729 and 3523 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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: compiler/java/com/google/dart/compiler/parser/Token.java
===================================================================
--- compiler/java/com/google/dart/compiler/parser/Token.java (revision 9267)
+++ compiler/java/com/google/dart/compiler/parser/Token.java (working copy)
@@ -27,24 +27,25 @@
COLON(":", 0),
SEMICOLON(";", 0),
PERIOD(".", 0),
+ CASCADE("..", 2),
ELLIPSIS("...", 0),
COMMA(",", 0),
CONDITIONAL("?", 3),
ARROW("=>", 0),
/* Assignment operators. */
- ASSIGN("=", 2),
- ASSIGN_BIT_OR("|=", 2),
- ASSIGN_BIT_XOR("^=", 2),
- ASSIGN_BIT_AND("&=", 2),
- ASSIGN_SHL("<<=", 2),
- ASSIGN_SAR(">>=", 2),
- ASSIGN_ADD("+=", 2),
- ASSIGN_SUB("-=", 2),
- ASSIGN_MUL("*=", 2),
- ASSIGN_DIV("/=", 2),
- ASSIGN_MOD("%=", 2),
- ASSIGN_TRUNC("~/=", 2),
+ ASSIGN("=", 1),
+ ASSIGN_BIT_OR("|=", 1),
+ ASSIGN_BIT_XOR("^=", 1),
+ ASSIGN_BIT_AND("&=", 1),
+ ASSIGN_SHL("<<=", 1),
+ ASSIGN_SAR(">>=", 1),
+ ASSIGN_ADD("+=", 1),
+ ASSIGN_SUB("-=", 1),
+ ASSIGN_MUL("*=", 1),
+ ASSIGN_DIV("/=", 1),
+ ASSIGN_MOD("%=", 1),
+ ASSIGN_TRUNC("~/=", 1),
/* Binary operators sorted by precedence. */
OR("||", 4),

Powered by Google App Engine
This is Rietveld 408576698