Chromium Code Reviews| Index: lib/compiler/implementation/elements/elements.dart |
| diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart |
| index db285be7446542d499059f2cc318fb3d2e1c4d9e..cf5bb1462a8e159285a47bdb465667cf0693548b 100644 |
| --- a/lib/compiler/implementation/elements/elements.dart |
| +++ b/lib/compiler/implementation/elements/elements.dart |
| @@ -953,11 +953,14 @@ class Elements { |
| return new SourceString('$r\$$s'); |
| } |
| + static final SourceString OPERATOR_EQUALS = |
| + const SourceString('operator\$eq'); |
|
ahe
2012/06/20 19:45:52
Total nit: raw string would be nicer for grep'ing.
floitsch
2012/06/20 20:29:30
good argument.
done.
|
| + |
| static SourceString constructOperatorName(SourceString receiver, |
| SourceString selector, |
| [bool isPrefix = false]) { |
| String str = selector.stringValue; |
| - if (str === '==' || str === '!=') return Namer.OPERATOR_EQUALS; |
| + if (str === '==' || str === '!=') return OPERATOR_EQUALS; |
| if (str === '~') str = 'not'; |
| else if (str === 'negate' || (str === '-' && isPrefix)) str = 'negate'; |