Index: tests/lib/mirrors/mirrors_test.dart |
diff --git a/tests/lib/mirrors/mirrors_test.dart b/tests/lib/mirrors/mirrors_test.dart |
index 2cfde98e225d6d7f462b875bd963da8343e91026..0dead1e45640db6930f11bd7f5c4204c505fa2dd 100644 |
--- a/tests/lib/mirrors/mirrors_test.dart |
+++ b/tests/lib/mirrors/mirrors_test.dart |
@@ -91,9 +91,9 @@ testFieldAccess(mirrors) { |
var instance = new Class(); |
var libMirror = mirrors.findLibrary(#MirrorsTest); |
- var classMirror = libMirror.classes[#Class]; |
+ var classMirror = libMirror.declarations[#Class]; |
var instMirror = reflect(instance); |
- var fieldMirror = classMirror.members[#field]; |
+ var fieldMirror = classMirror.declarations[#field]; |
var future; |
expect(fieldMirror is VariableMirror, isTrue); |
@@ -166,10 +166,10 @@ testReflectClass(mirrors) { |
testNames(mirrors) { |
var libMirror = mirrors.findLibrary(#MirrorsTest); |
- var classMirror = libMirror.classes[#Class]; |
- var typedefMirror = libMirror.members[#Typedef]; |
- var methodMirror = libMirror.functions[#testNames]; |
- var variableMirror = classMirror.variables[#field]; |
+ var classMirror = libMirror.declarations[#Class]; |
+ var typedefMirror = libMirror.declarations[#Typedef]; |
+ var methodMirror = libMirror.declarations[#testNames]; |
+ var variableMirror = classMirror.declarations[#field]; |
expect(libMirror.simpleName, equals(#MirrorsTest)); |
expect(libMirror.qualifiedName, equals(#MirrorsTest)); |