Index: pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart |
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart |
index 1bcb5d59d18fb3cfc98893d06948d7678a756dc9..503d4a0fad78d9dfaf50b6f1532d3c82f5063344 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart |
@@ -668,6 +668,7 @@ class TypeGraphInferrerEngine |
compiler.progress.reset(); |
} |
sortResolvedElements().forEach((Element element) { |
+ assert(compiler.enqueuer.resolution.hasBeenProcessed(element)); |
if (compiler.shouldPrintProgress) { |
compiler.log('Added $addedInGraph elements in inferencing graph.'); |
compiler.progress.reset(); |
@@ -1217,10 +1218,10 @@ class TypeGraphInferrerEngine |
Iterable<Element> sortResolvedElements() { |
int max = 0; |
Map<int, Setlet<Element>> methodSizes = new Map<int, Setlet<Element>>(); |
- compiler.enqueuer.resolution.resolvedElements.forEach((AstElement element) { |
+ compiler.enqueuer.resolution.processedElements.forEach((AstElement element) { |
// TODO(ngeoffray): Not sure why the resolver would put a null |
// mapping. |
- if (!compiler.enqueuer.resolution.hasBeenResolved(element)) return; |
+ if (!compiler.enqueuer.resolution.hasBeenProcessed(element)) return; |
TreeElementMapping mapping = element.resolvedAst.elements; |
element = element.implementation; |
if (element.impliesType) return; |