I'm not sure it's possible, actually. You can retrieve t's initialization value (!), using t.symbol.getImpl, which is useful when handling const, but I can't see any way (or at least an obvious way) how to extract variable pragmas from a variable symbol.
- How do you check the presence of an annotation? monster
- Re: How do you check the presence of an annotation? Udiknedormin
