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

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

Issue 10825337: Add name and library to selectors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index ea7c5dde6e0b27d0dad267e3288cfe1791fa80f5..fcc03a160430337ce61953d6a25af6465096e662 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -1299,12 +1299,12 @@ class Elements {
static SourceString constructOperatorName(SourceString receiver,
SourceString selector,
- [bool isPrefix = false]) {
+ [bool isUnary = false]) {
String str = selector.stringValue;
if (str === '==' || str === '!=') return OPERATOR_EQUALS;
if (str === '~') str = 'not';
- else if (str === 'negate' || (str === '-' && isPrefix)) str = 'negate';
+ else if (str === 'negate' || (str === '-' && isUnary)) str = 'negate';
else if (str === '[]') str = 'index';
else if (str === '[]=') str = 'indexSet';
else if (str === '*' || str === '*=') str = 'mul';

Powered by Google App Engine
This is Rietveld 408576698