Я перебираю объявления своих библиотек, используя зеркала, чтобы я мог читать метаданные в своих классах. Но мне нужно получить фактический тип объявления, в котором я сейчас нахожусь, но я не вижу способа сделать это в документах API.
var decs = myLibraryMirror.declarations;
decs.forEach((symbol, dec){
dec.metaData.forEach((metaMirror){
var meta = metaMirror.reflectee;
if(meta is TheTypeImInterestedIn){
// do some stuff with the meta object and the class Type it's declared on
// but how to get the Type of the class that the declaration refers too?
}
});
});
dec.reflectedType
для получения рассматриваемого типа класса. - person Daniel Robinson   schedule 22.12.2014