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

Unified Diff: tests/compiler/dart2js/class_set_test.dart

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 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: tests/compiler/dart2js/class_set_test.dart
diff --git a/tests/compiler/dart2js/class_set_test.dart b/tests/compiler/dart2js/class_set_test.dart
index 5feee9cb68f471389e2eed75e3578c0582a76436..3a4f36aeb733e4f5f85d7942c32dfb2b3d7ef0e3 100644
--- a/tests/compiler/dart2js/class_set_test.dart
+++ b/tests/compiler/dart2js/class_set_test.dart
@@ -91,7 +91,7 @@ testIterators() async {
ClassHierarchyNodeIterator iterator;
void checkState(ClassElement root,
- {ClassElement currentNode, List<List<ClassElement>> stack}) {
+ {ClassElement currentNode, List<ClassElement> stack}) {
ClassElement classOf(ClassHierarchyNode node) {
return node != null ? node.cls : null;
}
@@ -399,7 +399,7 @@ testForEach() async {
void checkForEachSubclass(ClassElement cls, List<ClassElement> expected) {
ClassSet classSet = world.getClassSet(cls);
List<ClassElement> visited = <ClassElement>[];
- classSet.forEachSubclass((ClassElement cls) {
+ classSet.forEachSubclass((cls) {
visited.add(cls);
}, ClassHierarchyNode.ALL);
@@ -410,7 +410,7 @@ testForEach() async {
"Actual: $visited, expected: $expected\n$classSet");
visited = <ClassElement>[];
- classSet.forEachSubclass((ClassElement cls) {
+ classSet.forEachSubclass((cls) {
visited.add(cls);
return IterationStep.CONTINUE;
}, ClassHierarchyNode.ALL);
@@ -436,7 +436,7 @@ testForEach() async {
void checkForEachSubtype(ClassElement cls, List<ClassElement> expected) {
ClassSet classSet = world.getClassSet(cls);
List<ClassElement> visited = <ClassElement>[];
- classSet.forEachSubtype((ClassElement cls) {
+ classSet.forEachSubtype((cls) {
visited.add(cls);
}, ClassHierarchyNode.ALL);
@@ -447,7 +447,7 @@ testForEach() async {
"Actual: $visited, expected: $expected\n$classSet");
visited = <ClassElement>[];
- classSet.forEachSubtype((ClassElement cls) {
+ classSet.forEachSubtype((cls) {
visited.add(cls);
return IterationStep.CONTINUE;
}, ClassHierarchyNode.ALL);
@@ -482,7 +482,8 @@ testForEach() async {
ClassSet classSet = world.getClassSet(cls);
List<ClassElement> visited = <ClassElement>[];
- IterationStep visit(ClassElement cls) {
+ IterationStep visit(_cls) {
+ ClassElement cls = _cls;
visited.add(cls);
if (cls == stop) {
return IterationStep.STOP;
@@ -538,7 +539,7 @@ testForEach() async {
ClassSet classSet = world.getClassSet(cls);
List<ClassElement> visited = <ClassElement>[];
- bool visit(ClassElement cls) {
+ bool visit(cls) {
visited.add(cls);
return cls == find;
}
« no previous file with comments | « tests/compiler/dart2js/bad_output_io_test.dart ('k') | tests/compiler/dart2js/constant_expression_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698