Index: tests/compiler/dart2js/find_my_name_test.dart |
diff --git a/tests/compiler/dart2js/find_my_name_test.dart b/tests/compiler/dart2js/find_my_name_test.dart |
index 72f42fc1e702af74a8d2812d9db39813d4959f42..f36c662edcb5c09e669e483f66bd3c02e11d3db6 100644 |
--- a/tests/compiler/dart2js/find_my_name_test.dart |
+++ b/tests/compiler/dart2js/find_my_name_test.dart |
@@ -34,11 +34,11 @@ testClass(String code, MockCompiler compiler) { |
int skip = code.indexOf('{'); |
ClassElement cls = parseUnit(code, compiler, compiler.mainApp).head; |
cls.parseNode(compiler); |
- for (Element e in cls.localMembers) { |
+ cls.forEachLocalMember((Element e) { |
String name = e.name; |
if (e.isConstructor()) { |
name = Elements.reconstructConstructorName(e).replaceFirst(r'$', '.'); |
} |
Expect.equals(code.indexOf(name, skip), e.position().charOffset); |
- } |
+ }); |
} |