Mercurial > projects > ddmd
view dmd/Condition.d @ 114:e28b18c23469
added a module dmd.common for commonly used stuff
it currently holds code for consistency checking of predefined versions
also added a VisualD project file
author | Trass3r |
---|---|
date | Wed, 01 Sep 2010 18:21:58 +0200 |
parents | 10317f0c89a5 |
children | e3afd1303184 |
line wrap: on
line source
module dmd.Condition; import dmd.common; import dmd.Loc; import dmd.Scope; import dmd.ScopeDsymbol; import dmd.OutBuffer; import dmd.HdrGenState; class Condition { Loc loc; int inc = 0;// 0: not computed yet // 1: include // 2: do not include this(Loc loc) { this.loc = loc; } abstract Condition syntaxCopy(); abstract bool include(Scope sc, ScopeDsymbol s); abstract void toCBuffer(OutBuffer buf, HdrGenState* hgs); }