Mercurial > projects > ddmd
annotate dmd/Condition.d @ 0:10317f0c89a5
Initial commit
author | korDen |
---|---|
date | Sat, 24 Oct 2009 08:42:06 +0400 |
parents | |
children | e28b18c23469 |
rev | line source |
---|---|
0 | 1 module dmd.Condition; |
2 | |
3 import dmd.Loc; | |
4 import dmd.Scope; | |
5 import dmd.ScopeDsymbol; | |
6 import dmd.OutBuffer; | |
7 import dmd.HdrGenState; | |
8 | |
9 class Condition | |
10 { | |
11 Loc loc; | |
12 int inc = 0;// 0: not computed yet | |
13 // 1: include | |
14 // 2: do not include | |
15 | |
16 this(Loc loc) | |
17 { | |
18 this.loc = loc; | |
19 } | |
20 | |
21 abstract Condition syntaxCopy(); | |
22 abstract bool include(Scope sc, ScopeDsymbol s); | |
23 abstract void toCBuffer(OutBuffer buf, HdrGenState* hgs); | |
24 } |