Index: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
index 4e23f23fea88e4ad198a0c30dbf17fce514ec850..689811799f8354a6fe4b27e990bd627c97795174 100644 |
--- a/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
+++ b/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart |
@@ -10,6 +10,7 @@ import '../elements/elements.dart'; |
import '../dart2jslib.dart'; |
import '../tree/tree.dart'; |
import '../util/util.dart' show Link; |
+import '../universe/universe.dart' show Selector; |
import 'types.dart' show TypesInferrer, ConcreteType, ClassBaseType; |
/** |
@@ -19,11 +20,11 @@ import 'types.dart' show TypesInferrer, ConcreteType, ClassBaseType; |
class WorkSet<E extends Element> { |
final List<E> queue = new List<E>(); |
final Set<E> elementsInQueue = new Set<E>(); |
- |
+ |
void add(E element) { |
element = element.implementation; |
if (elementsInQueue.contains(element)) return; |
- queue.addLast(element); |
+ queue.add(element); |
elementsInQueue.add(element); |
} |
@@ -71,7 +72,7 @@ class ClassInfoForFinalFields { |
/** |
* Records that [constructor] has been analyzed. If not at 0, |
* decrement [constructorsToVisitCount]. |
- */ |
+ */ |
void doneAnalyzingGenerativeConstructor(Element constructor) { |
if (constructorsToVisitCount != 0) constructorsToVisitCount--; |
} |