DMD Symbol Reference Analysis Pass
via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed May 20 02:27:05 PDT 2015
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.
More information about the Digitalmars-d-learn
mailing list