Mercurial > projects > ddmd
diff dmd/Condition.d @ 0:10317f0c89a5
Initial commit
author | korDen |
---|---|
date | Sat, 24 Oct 2009 08:42:06 +0400 |
parents | |
children | e28b18c23469 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dmd/Condition.d Sat Oct 24 08:42:06 2009 +0400 @@ -0,0 +1,24 @@ +module dmd.Condition; + +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); +} \ No newline at end of file