Index: tests/lib/mirrors/private_symbol_test.dart |
diff --git a/tests/lib/mirrors/private_symbol_test.dart b/tests/lib/mirrors/private_symbol_test.dart |
index 6b10d802af8adaefaea73fde9deeb91f5628d168..09d8261242ade37b453df661ef320a8cbef861d1 100644 |
--- a/tests/lib/mirrors/private_symbol_test.dart |
+++ b/tests/lib/mirrors/private_symbol_test.dart |
@@ -64,37 +64,37 @@ main() { |
Expect.equals(#_C, cm.simpleName); |
Expect.equals('_C', MirrorSystem.getName(cm.simpleName)); |
- MethodMirror mm = cm.members[#g]; |
+ MethodMirror mm = cm.declarations[#g]; |
Expect.isNotNull(mm); |
Expect.isTrue(mm.isGetter); |
Expect.equals(#g, mm.simpleName); |
Expect.equals('g', MirrorSystem.getName(mm.simpleName)); |
- mm = cm.members[const Symbol('s=')]; |
+ mm = cm.declarations[const Symbol('s=')]; |
Expect.isNotNull(mm); |
Expect.isTrue(mm.isSetter); |
Expect.equals(const Symbol('s='), mm.simpleName); |
Expect.equals('s=', MirrorSystem.getName(mm.simpleName)); |
- mm = cm.members[#m]; |
+ mm = cm.declarations[#m]; |
Expect.isNotNull(mm); |
Expect.isTrue(mm.isRegularMethod); |
Expect.equals(#m, mm.simpleName); |
Expect.equals('m', MirrorSystem.getName(mm.simpleName)); |
- mm = cm.members[#_g]; |
+ mm = cm.declarations[#_g]; |
Expect.isNotNull(mm); |
Expect.isTrue(mm.isGetter); |
Expect.equals(#_g, mm.simpleName); |
Expect.equals('_g', MirrorSystem.getName(mm.simpleName)); |
- mm = cm.members[MirrorSystem.getSymbol('_s=', libtest)]; |
+ mm = cm.declarations[MirrorSystem.getSymbol('_s=', libtest)]; |
Expect.isNotNull(mm); |
Expect.isTrue(mm.isSetter); |
Expect.equals(MirrorSystem.getSymbol('_s=', libtest), mm.simpleName); |
Expect.equals('_s=', MirrorSystem.getName(mm.simpleName)); |
- mm = cm.members[#_m]; |
+ mm = cm.declarations[#_m]; |
Expect.isNotNull(mm); |
Expect.isTrue(mm.isRegularMethod); |
Expect.equals(#_m, mm.simpleName); |
@@ -109,7 +109,7 @@ main() { |
Expect.equals(#_F, tdm.simpleName); |
Expect.equals('_F', MirrorSystem.getName(tdm.simpleName)); |
- ParameterMirror pm = (cm.members[#m] as MethodMirror).parameters[0]; |
+ ParameterMirror pm = (cm.declarations[#m] as MethodMirror).parameters[0]; |
Expect.equals(#_p, pm.simpleName); |
Expect.equals('_p', MirrorSystem.getName(pm.simpleName)); |