Mercurial > projects > ddmd
view dmd/ThisDeclaration.d @ 32:81796b717a39
A few bad cast fixed. TODO: either get rid of dyncast(), or derive all objects from intermediate supertype.
author | korDen |
---|---|
date | Tue, 18 May 2010 17:51:46 +0400 |
parents | 10317f0c89a5 |
children | 2e2a5c3f943a |
line wrap: on
line source
module dmd.ThisDeclaration; import dmd.VarDeclaration; import dmd.Dsymbol; import dmd.Loc; import dmd.Type; import dmd.Id; // For the "this" parameter to member functions class ThisDeclaration : VarDeclaration { this(Loc loc, Type t) { super(loc, t, Id.This, null); noauto = true; } Dsymbol syntaxCopy(Dsymbol) { assert(false); } ThisDeclaration isThisDeclaration() { return this; } }