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

Unified Diff: runtime/vm/token.h

Issue 10911206: Remove support for operator negate and replace occurrences with unary (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « runtime/vm/parser.cc ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/token.h
diff --git a/runtime/vm/token.h b/runtime/vm/token.h
index 5462532f430b06ef6efb924be7d3e7d3a2b6c513..9591b1e4399464e49227513f6468a7e602062eb9 100644
--- a/runtime/vm/token.h
+++ b/runtime/vm/token.h
@@ -268,8 +268,6 @@ class Token {
return attributes_[tok];
}
- // TODO(hausner): Remove the pseudo keyword 'negate' when old operator
- // syntax for unary - is removed.
static bool CanBeOverloaded(Kind tok) {
ASSERT(tok < kNumTokens);
return IsRelationalOperator(tok) ||
@@ -277,8 +275,7 @@ class Token {
(tok >= kADD && tok <= kMOD) || // Arithmetic operations.
(tok >= kBIT_OR && tok <= kSHR) || // Bit operations.
(tok == kINDEX) ||
- (tok == kASSIGN_INDEX) ||
- (tok == kNEGATE);
+ (tok == kASSIGN_INDEX);
}
static bool NeedsLiteralToken(Kind tok) {
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698