Index: dart/sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart |
diff --git a/dart/sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart b/dart/sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart |
index c218b6cff637ecc1b705b31f73d72d4fd7483450..67f4fb468bdf894e1c1eb2d374e2a7c469c090fa 100755 |
--- a/dart/sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart |
+++ b/dart/sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart |
@@ -62,14 +62,12 @@ void _serializeObject(String name, Object o, JsonPrinter printer) { |
void determineAllMembers(ClassMirror classMirror, |
List<String> members) { |
- for(Symbol getterName in classMirror.getters.keys) { |
- if (!members.contains(MirrorSystem.getName(getterName))) { |
- members.add(MirrorSystem.getName(getterName)); |
- } |
- } |
- for(Symbol fieldName in classMirror.variables.keys) { |
- if (!members.contains(MirrorSystem.getName(fieldName))) { |
- members.add(MirrorSystem.getName(fieldName)); |
+ for (var mirror in classMirror.declarations.values) { |
+ if (mirror is VariableMirror || |
+ (mirror is MethodMirror && mirror.isGetter)) { |
+ if (!members.contains(MirrorSystem.getName(mirror.simpleName))) { |
+ members.add(MirrorSystem.getName(mirror.simpleName)); |
+ } |
} |
} |
if (classMirror.superclass != null && |