Any way to get file/line for symbol declaration?

Guillaume Piolat contact+spam at spam.org
Sun Jun 16 12:58:13 UTC 2019


On Monday, 10 June 2019 at 01:04:42 UTC, Nicholas Wilson wrote:
> On Sunday, 9 June 2019 at 22:17:08 UTC, Manu wrote:
>> I'm thinking something like: __traits(getLoc, symbol) ==
>> AliasSeq!(file, line, column) for the declaration of the symbol
>> specified.
>
> https://github.com/dlang/dmd/pull/10013

I read a Twitter post from Adam about it and initially thought it 
was for getting the "lines of code" (LoC) of a function. Would 
that also make sense as a trait?


More information about the Digitalmars-d mailing list