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

Unified Diff: lib/compiler/implementation/namer.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
Index: lib/compiler/implementation/namer.dart
diff --git a/lib/compiler/implementation/namer.dart b/lib/compiler/implementation/namer.dart
index a5b960e7b04ab8da17c48c2f3c2739e29f900c6a..f8b3ba88f3b643a9b4c5235baefd4eb004eb0262 100644
--- a/lib/compiler/implementation/namer.dart
+++ b/lib/compiler/implementation/namer.dart
@@ -8,10 +8,6 @@
class Namer {
final Compiler compiler;
- static final CLOSURE_INVOCATION_NAME = const SourceString('\$call');
- static final STATIC_CLOSURE_NAME_NAME = '\$name';
- static final OPERATOR_EQUALS = const SourceString('operator\$eq');
-
static Set<String> _jsReserved = null;
Set<String> get jsReserved() {
if (_jsReserved === null) {
@@ -34,6 +30,10 @@ class Namer {
final String CURRENT_ISOLATE = "\$";
final String ISOLATE = "Isolate";
final String ISOLATE_PROPERTIES = "\$isolateProperties";
+ /** Some closures must contain their name. The name is stored in
+ * [STATIC_CLOSURE_NAME_NAME]. */
+ final String STATIC_CLOSURE_NAME_NAME = '\$name';
ahe 2012/06/20 19:45:52 Raw string?
floitsch 2012/06/20 20:29:30 Done.
+ final SourceString CLOSURE_INVOCATION_NAME = const SourceString('\$call');
ahe 2012/06/20 19:45:52 Ditto.
floitsch 2012/06/20 20:29:30 Done.
String closureInvocationName(Selector selector) {

Powered by Google App Engine
This is Rietveld 408576698