On Wednesday, 20 May 2015 at 08:52:23 UTC, Per Nordlöw wrote:
Does DMD currently do any analysis of references to a symbol in
a given scope? If not where could this information be extracted
(in which visitor/callback) and in what structure should it, if
so, be stored?
I'm guessing
Scope::insert(Dsymbol*s)
{
if (VarDeclaration *vd = s->isVarDeclaration())
{
// ..
is of interest. Is there another member function called everytime
a Dsymbol is referenced?
I'm guessing MODFlags plays a role here aswell.