Index: dart/lib/compiler/implementation/scanner/parser.dart |
diff --git a/dart/lib/compiler/implementation/scanner/parser.dart b/dart/lib/compiler/implementation/scanner/parser.dart |
index fab984060a33b22d0c80021186846eae0c0d2df2..adf0646b577c3584f77ad01c1738e11950c09c71 100644 |
--- a/dart/lib/compiler/implementation/scanner/parser.dart |
+++ b/dart/lib/compiler/implementation/scanner/parser.dart |
@@ -725,7 +725,9 @@ class Parser { |
Token parseOperatorName(Token token) { |
assert(optional('operator', token)); |
- if (isUserDefinableOperator(token.next.stringValue)) { |
+ if (isUserDefinableOperator(token.next.stringValue) |
+ // TODO(ahe): Remove negate. |
+ || token.next.value == const SourceString("negate")) { |
Token operator = token; |
token = token.next; |
listener.handleOperatorName(operator, token); |