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

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

Issue 10574046: Remove static fields in the namer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 6 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
« no previous file with comments | « no previous file | lib/compiler/implementation/emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..12ffc0f8d3115878728d63cd1e9dc9b764b68d1e 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');
+
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';
« no previous file with comments | « no previous file | lib/compiler/implementation/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698