blob: 80b43b9afaebd7e5a4cf35883528b0b1f76950a3 [file] [log] [blame]
library lib;
import "deferred_mirrors_metadata_test.dart";
import "dart:mirrors";
class H {
const H();
}
class F {
@H()
int f = 0;
}
@C()
class E {
@D()
dynamic f;
}
String foo() {
String c = reflectClass(E).metadata[0].invoke(#toString, []).reflectee;
String d = reflectClass(E)
.declarations[#f]
.metadata[0]
.invoke(#toString, []).reflectee;
InstanceMirror i = currentMirrorSystem().findLibrary(#main).metadata[0];
String a = i.invoke(#toString, []).reflectee;
String b = i.getField(#b).invoke(#toString, []).reflectee;
return a + b + c + d;
}