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

Unified Diff: dart/lib/compiler/implementation/resolver.dart

Issue 10905211: Clean up operator names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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: dart/lib/compiler/implementation/resolver.dart
diff --git a/dart/lib/compiler/implementation/resolver.dart b/dart/lib/compiler/implementation/resolver.dart
index 7409bc630c7e7b8040e27f8555357b4fa7239f42..d3653792d03cfb8fe7a8606ca36d0b6d740c58d4 100644
--- a/dart/lib/compiler/implementation/resolver.dart
+++ b/dart/lib/compiler/implementation/resolver.dart
@@ -1594,9 +1594,13 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
if (string === '!' || string === '&&' || string == '||' ||
string === 'is' || string === 'as' ||
string === '===' || string === '!==' ||
+ string === '?' ||
string === '>>>') {
return null;
}
+ if (!isUserDefinableOperator(source.stringValue)) {
+ source = Elements.mapToUserOperator(source);
+ }
return node.arguments.isEmpty()
? new Selector.unaryOperator(source)
: new Selector.binaryOperator(source);

Powered by Google App Engine
This is Rietveld 408576698