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

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

Issue 10693123: Use better names for closures and static variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « lib/compiler/implementation/emitter.dart ('k') | lib/compiler/implementation/namer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/enqueue.dart
diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
index 7bb1ce4e777d23a647112c7c84d152b76558348d..b2ff2a0985dfcb9c952f669c548a925e7eeb745a 100644
--- a/lib/compiler/implementation/enqueue.dart
+++ b/lib/compiler/implementation/enqueue.dart
@@ -93,8 +93,7 @@ class Enqueuer {
// of closures. They are processed as part of the enclosing function and not
// present as a separate element (the call to the closure will be a member
// function).
- var closure = const SourceString("Closure");
- return element.isMember() && element.getEnclosingClass().name != closure;
+ return element.isMember() && !element.getEnclosingClass().isClosure();
}
void registerRecompilationCandidate(Element element,
« no previous file with comments | « lib/compiler/implementation/emitter.dart ('k') | lib/compiler/implementation/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698