Index: dart/lib/compiler/implementation/enqueue.dart |
diff --git a/dart/lib/compiler/implementation/enqueue.dart b/dart/lib/compiler/implementation/enqueue.dart |
index a0a453af6be5b08e14bf3beae2e3f81602e759f5..0d8b1e7bc66ffa7f267755a87b71a7d3a319fb16 100644 |
--- a/dart/lib/compiler/implementation/enqueue.dart |
+++ b/dart/lib/compiler/implementation/enqueue.dart |
@@ -34,7 +34,7 @@ class Enqueuer { |
queue = new Queue<WorkItem>(), |
resolvedElements = new Map<Element, TreeElements>(); |
- bool get isFirstQueue() => compiler.enqueuer.resolution === this; |
+ bool get isResolutionQueue() => compiler.enqueuer.resolution === this; |
TreeElements getCachedElements(Element element) { |
Element owner = element.getOutermostEnclosingMemberOrTopLevel(); |
@@ -44,10 +44,11 @@ class Enqueuer { |
void addToWorkList(Element element, [TreeElements elements]) { |
if (element.isForeign()) return; |
if (queueIsClosed) { |
- if (isFirstQueue && getCachedElements(element) !== null) return; |
+ if (isResolutionQueue && getCachedElements(element) !== null) return; |
compiler.internalErrorOnElement(element, "Work list is closed."); |
} |
- if (!isFirstQueue && element.kind === ElementKind.GENERATIVE_CONSTRUCTOR) { |
+ if (!isResolutionQueue && |
+ element.kind === ElementKind.GENERATIVE_CONSTRUCTOR) { |
registerInstantiatedClass(element.enclosingElement); |
} |
if (elements === null) { |