library; import self as self; import "dart:core" as core; import "dart:mirrors" as mir; import "dart:mirrors"; class _FailingTest extends core::Object /*hasConstConstructor*/ { const constructor •() → self::_FailingTest* : super core::Object::•() ; abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode abstract member-signature method toString() → core::String*; -> core::Object::toString abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } class MyTest extends core::Object { synthetic constructor •() → self::MyTest* : super core::Object::•() ; @#C1 method foo() → void {} abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode abstract member-signature method toString() → core::String*; -> core::Object::toString abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } abstract class _MyTest2&Object&MyTest = core::Object with self::MyTest /*isAnonymousMixin,hasConstConstructor*/ { const synthetic constructor •() → self::_MyTest2&Object&MyTest* : super core::Object::•() ; mixin-super-stub method foo() → void return super.{self::MyTest::foo}(); abstract member-signature get _identityHashCode() → core::int*; -> core::Object::_identityHashCode abstract member-signature method _instanceOf(dynamic instantiatorTypeArguments, dynamic functionTypeArguments, dynamic type) → core::bool*; -> core::Object::_instanceOf abstract member-signature method _simpleInstanceOf(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOf abstract member-signature method _simpleInstanceOfTrue(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfTrue abstract member-signature method _simpleInstanceOfFalse(dynamic type) → core::bool*; -> core::Object::_simpleInstanceOfFalse abstract member-signature operator ==(dynamic other) → core::bool*; -> core::Object::== abstract member-signature get hashCode() → core::int*; -> core::Object::hashCode abstract member-signature method toString() → core::String*; -> core::Object::toString abstract member-signature method noSuchMethod(core::Invocation* invocation) → dynamic; -> core::Object::noSuchMethod abstract member-signature get runtimeType() → core::Type*; -> core::Object::runtimeType } class MyTest2 extends self::_MyTest2&Object&MyTest { synthetic constructor •() → self::MyTest2* : super self::_MyTest2&Object&MyTest::•() ; } static const field self::_FailingTest* failingTest = #C1; static method main() → dynamic { mir::ClassMirror* classMirror = mir::reflectClass(#C2); classMirror.{mir::ClassMirror::instanceMembers}.{core::Map::forEach}((core::Symbol* symbol, mir::MethodMirror* memberMirror) → Null { if(memberMirror.{mir::DeclarationMirror::simpleName}.{core::Symbol::==}(#C3)) { core::print(memberMirror); core::print(self::_hasFailingTestAnnotation(memberMirror)); } }); } static method _hasFailingTestAnnotation(mir::MethodMirror* method) → core::bool* { core::bool* r = self::_hasAnnotationInstance(method, #C1); core::print("[_hasFailingTestAnnotation] ${method} ${r}"); return r; } static method _hasAnnotationInstance(mir::DeclarationMirror* declaration, dynamic instance) → core::bool* return declaration.{mir::DeclarationMirror::metadata}.{core::Iterable::any}((mir::InstanceMirror* annotation) → core::bool* { core::print("annotation: ${annotation.{mir::InstanceMirror::reflectee}}"); return core::identical(annotation.{mir::InstanceMirror::reflectee}, instance); }); constants { #C1 = self::_FailingTest {} #C2 = TypeLiteralConstant(self::MyTest2*) #C3 = #foo } Constructor coverage from constants: org-dartlang-testcase:///bug33099.dart: - _FailingTest. (from org-dartlang-testcase:///bug33099.dart:10:9) - Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart:25:9)