the ClassMirror.instanceMembers should contain the methods of the class, however it doesn't contain abstract methods.I'm trying to use annotations on abstract methods to direct the behavior of a proxy without creating the class (I'd use an interface if dart had them).Should this be a bug/feature request or is this the way it's supposed to be?The following returns null:
import "dart:mirrors";
abstract class Foo {
bar();
}
main() {
ClassMirror cm = reflectClass(Foo);
print(cm.instanceMembers[const Symbol("bar")]);
}The following returns MethodMirror on 'bar'
import "dart:mirrors";
abstract class Foo {
bar() {}
}
main() {
ClassMirror cm = reflectClass(Foo);
print(cm.instanceMembers[const Symbol("bar")]);
}
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.