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

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: Remove spurious "else". 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') | lib/compiler/implementation/namer.dart » ('J')
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..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';
« no previous file with comments | « no previous file | lib/compiler/implementation/emitter.dart » ('j') | lib/compiler/implementation/namer.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698