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

Unified Diff: runtime/vm/token.cc

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.cc
===================================================================
--- runtime/vm/token.cc (revision 13693)
+++ runtime/vm/token.cc (working copy)
@@ -37,7 +37,7 @@
#undef TOKEN_ATTRIBUTE
-bool Token::IsBinaryToken(Token::Kind token) {
+bool Token::IsBinaryOperator(Token::Kind token) {
switch (token) {
case Token::kADD:
case Token::kSUB:
@@ -59,8 +59,8 @@
}
-bool Token::IsUnaryToken(Token::Kind token) {
- return (token == Token::kNEGATE) || (token == kBIT_NOT);
+bool Token::IsPrefixOperator(Token::Kind token) {
+ return (token == kNOT) || (token == kBIT_NOT) || (token == kNEGATE);
}
} // namespace dart
« runtime/vm/parser.cc ('K') | « runtime/vm/token.h ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698