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

Unified Diff: sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart

Issue 12513006: Fix warnings in dart2js code and re-enable analyzer coverage. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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: 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--;
}

Powered by Google App Engine
This is Rietveld 408576698