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

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

Issue 10834243: Reduce usage of .enclosingElement to get enclosing class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/enqueue.dart
diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
index b2ff2a0985dfcb9c952f669c548a925e7eeb745a..36c050a676b5b23cc6dcc82ec96dcbb40d24673d 100644
--- a/lib/compiler/implementation/enqueue.dart
+++ b/lib/compiler/implementation/enqueue.dart
@@ -80,7 +80,7 @@ class Enqueuer {
}
if (!isResolutionQueue &&
element.kind === ElementKind.GENERATIVE_CONSTRUCTOR) {
- registerInstantiatedClass(element.enclosingElement);
+ registerInstantiatedClass(element.getEnclosingClass());
}
if (elements === null) {
elements = getCachedElements(element);

Powered by Google App Engine
This is Rietveld 408576698