diff options
author | Moonchild <moonchild@palemoon.org> | 2022-05-21 16:38:37 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-05-21 16:38:37 +0000 |
commit | 2694995e52a0bd767acac74f2306767d0a3720c9 (patch) | |
tree | d2a1198ccd0b8eab1b0b589b6900845aa3b87d5b /js/src/frontend/TokenKind.h | |
parent | f532bbd7af98d2cb543bf86b93b0e0e9fa1e9b2a (diff) | |
parent | 00c51f75fa4845f348708a796d552ca281f8210a (diff) | |
download | uxp-2694995e52a0bd767acac74f2306767d0a3720c9.tar.gz |
Merge branch 'master' into 12101210
Diffstat (limited to 'js/src/frontend/TokenKind.h')
-rw-r--r-- | js/src/frontend/TokenKind.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/js/src/frontend/TokenKind.h b/js/src/frontend/TokenKind.h index 27da8ecf3e..f11ceda33e 100644 --- a/js/src/frontend/TokenKind.h +++ b/js/src/frontend/TokenKind.h @@ -152,11 +152,15 @@ * range-testing. \ */ \ /* \ - * Binary operators tokens, TOK_OR thru TOK_POW. These must be in the same \ - * order as F(OR) and friends in FOR_EACH_PARSE_NODE_KIND in ParseNode.h. \ + * Binary operators tokens. \ + * These must be in the same order in several places: \ + * - the precedence table and JSOp code list in Parser.cpp \ + * - the binary operators in ParseNode.h \ + * - the first and last binary operator markers in ParseNode.h \ */ \ + macro(COALESCE, "'\?\?'") /* escapes to avoid trigraphs warning */ \ + range(BINOP_FIRST, COALESCE) \ macro(OR, "'||'") /* logical or */ \ - range(BINOP_FIRST, OR) \ macro(AND, "'&&'") /* logical and */ \ macro(BITOR, "'|'") /* bitwise-or */ \ macro(BITXOR, "'^'") /* bitwise-xor */ \ @@ -196,7 +200,7 @@ macro(DIV, "'/'") \ macro(MOD, "'%'") \ macro(POW, "'**'") \ - range(BINOP_LAST, POW) \ + range(BINOP_LAST, POW) \ \ /* Unary operation tokens. */ \ macro(TYPEOF, "keyword 'typeof'") \ |