AggregateDeclaration *VarDeclaration::isThis() { AggregateDeclaration *ad = NULL; if (!(storage_class & (STCstatic | STCextern | STCmanifest | STCtemplateparameter | STCtls | STCgshared | STCctfe))) { if ((storage_class & (STCconst | STCimmutable)) && init) return NULL; for (Dsymbol *s = this; s; s = s->parent) { ad = s->isMember(); if (ad) break; if (!s->parent || !s->parent->isTemplateMixin()) break; } } return ad; }