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

Unified Diff: runtime/vm/token.h

Issue 11199002: Remove built-in identifier 'negate' from VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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: runtime/vm/token.h
===================================================================
--- runtime/vm/token.h (revision 13693)
+++ runtime/vm/token.h (working copy)
@@ -115,6 +115,7 @@
\
TOK(kINDEX, "[]", 0, kNoAttribute) \
TOK(kASSIGN_INDEX, "[]=", 0, kNoAttribute) \
+ TOK(kNEGATE, "unary-", 0, kNoAttribute) \
\
TOK(kIDENT, "", 0, kNoAttribute) \
TOK(kSTRING, "", 0, kNoAttribute) \
@@ -166,7 +167,6 @@
KW(kIN, "in", 0, kKeyword) \
KW(kINTERFACE, "interface", 0, kPseudoKeyword) \
KW(kIS, "is", 10, kKeyword) \
- KW(kNEGATE, "negate", 0, kPseudoKeyword) \
KW(kNEW, "new", 0, kKeyword) \
KW(kNULL, "null", 0, kKeyword) \
KW(kOPERATOR, "operator", 0, kPseudoKeyword) \
@@ -286,8 +286,8 @@
(tok == Token::kDOUBLE));
}
- static bool IsBinaryToken(Token::Kind token);
- static bool IsUnaryToken(Token::Kind token);
+ static bool IsBinaryOperator(Token::Kind token);
+ static bool IsPrefixOperator(Token::Kind token);
private:
static const char* name_[];
« runtime/vm/parser.cc ('K') | « runtime/vm/parser.cc ('k') | runtime/vm/token.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698