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

Unified Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 2119193002: Compute correct names for closures in operator methods. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index 52f5f309efe87a5334399ab7b5a49b7e4baa9f99..a0e88d03d086c7498240b5dc8e4edd7d51bb2d6d 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -590,45 +590,45 @@ class Elements {
static String operatorNameToIdentifier(String name) {
if (name == null) {
return name;
- } else if (identical(name, '==')) {
+ } else if (name == '==') {
return r'operator$eq';
- } else if (identical(name, '~')) {
+ } else if (name == '~') {
return r'operator$not';
- } else if (identical(name, '[]')) {
+ } else if (name == '[]') {
return r'operator$index';
- } else if (identical(name, '[]=')) {
+ } else if (name == '[]=') {
return r'operator$indexSet';
- } else if (identical(name, '*')) {
+ } else if (name == '*') {
return r'operator$mul';
- } else if (identical(name, '/')) {
+ } else if (name == '/') {
return r'operator$div';
- } else if (identical(name, '%')) {
+ } else if (name == '%') {
return r'operator$mod';
- } else if (identical(name, '~/')) {
+ } else if (name == '~/') {
return r'operator$tdiv';
- } else if (identical(name, '+')) {
+ } else if (name == '+') {
return r'operator$add';
- } else if (identical(name, '<<')) {
+ } else if (name == '<<') {
return r'operator$shl';
- } else if (identical(name, '>>')) {
+ } else if (name == '>>') {
return r'operator$shr';
- } else if (identical(name, '>=')) {
+ } else if (name == '>=') {
return r'operator$ge';
- } else if (identical(name, '>')) {
+ } else if (name == '>') {
return r'operator$gt';
- } else if (identical(name, '<=')) {
+ } else if (name == '<=') {
return r'operator$le';
- } else if (identical(name, '<')) {
+ } else if (name == '<') {
return r'operator$lt';
- } else if (identical(name, '&')) {
+ } else if (name == '&') {
return r'operator$and';
- } else if (identical(name, '^')) {
+ } else if (name == '^') {
return r'operator$xor';
- } else if (identical(name, '|')) {
+ } else if (name == '|') {
return r'operator$or';
- } else if (identical(name, '-')) {
+ } else if (name == '-') {
return r'operator$sub';
- } else if (identical(name, 'unary-')) {
+ } else if (name == 'unary-') {
return r'operator$negate';
} else {
return name;

Powered by Google App Engine
This is Rietveld 408576698