0
有沒有一種方法可以使用Smoke來獲得類的註釋?有沒有一種方法可以使用Smoke來獲取類的註釋?
class Anno {
const Anno();
}
@Anno
class A {
}
void main() {
var a = new A();
// how to get the annotation `@Anno` from `a` using the Smoke library
someMethod(A);
}
var someMethod(Type t) {
// get the annotation `@Anno` from `t` using the Smoke library
}
會很容易與鏡子,但它似乎沒有相當於煙霧中的類鏡像,沒有任何元數據 – ProTom 2014-09-22 06:25:22
感謝您的確認。用mi做但我希望確保這個轉換器能夠被變換器轉換爲無鏡像的代碼。 – 2014-09-22 06:26:35