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

Unified Diff: pkg/front_end/lib/src/scanner/token.dart

Issue 2755433004: align fasta.PrecedenceInfo.precedence with analyzer.TokenType.precedence (Closed)
Patch Set: increase precedence of --/++ to 16 in fasta and analyzer Created 3 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
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/precedence.dart ('k') | pkg/front_end/test/scanner_roundtrip_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/scanner/token.dart
diff --git a/pkg/front_end/lib/src/scanner/token.dart b/pkg/front_end/lib/src/scanner/token.dart
index 2824fdcb2eb660bef8e07206022008b5bb427260..09dea64a32394ca9249a19e0be9626a757164d67 100644
--- a/pkg/front_end/lib/src/scanner/token.dart
+++ b/pkg/front_end/lib/src/scanner/token.dart
@@ -1009,7 +1009,7 @@ class TokenType {
const TokenType._('MINUS_EQ', TokenClass.ASSIGNMENT_OPERATOR, '-=');
static const TokenType MINUS_MINUS =
- const TokenType._('MINUS_MINUS', TokenClass.UNARY_PREFIX_OPERATOR, '--');
+ const TokenType._('MINUS_MINUS', TokenClass.UNARY_POSTFIX_OPERATOR, '--');
Brian Wilkerson 2017/03/15 13:50:33 I'm not sure what the right answer is here. Note t
static const TokenType OPEN_CURLY_BRACKET =
const TokenType._('OPEN_CURLY_BRACKET', TokenClass.NO_CLASS, '{');
@@ -1039,7 +1039,7 @@ class TokenType {
const TokenType._('PLUS_EQ', TokenClass.ASSIGNMENT_OPERATOR, '+=');
static const TokenType PLUS_PLUS =
- const TokenType._('PLUS_PLUS', TokenClass.UNARY_PREFIX_OPERATOR, '++');
+ const TokenType._('PLUS_PLUS', TokenClass.UNARY_POSTFIX_OPERATOR, '++');
static const TokenType QUESTION =
const TokenType._('QUESTION', TokenClass.CONDITIONAL_OPERATOR, '?');
« no previous file with comments | « pkg/front_end/lib/src/fasta/scanner/precedence.dart ('k') | pkg/front_end/test/scanner_roundtrip_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698