Mercurial > projects > ddmd
annotate dmd/Condition.d @ 187:b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author | Abscissa |
---|---|
date | Tue, 07 Jun 2011 23:37:34 -0400 |
parents | e3afd1303184 |
children |
rev | line source |
---|---|
0 | 1 module dmd.Condition; |
2 | |
114 | 3 import dmd.common; |
0 | 4 import dmd.Loc; |
5 import dmd.Scope; | |
6 import dmd.ScopeDsymbol; | |
7 import dmd.OutBuffer; | |
8 import dmd.HdrGenState; | |
9 | |
178 | 10 import dmd.TObject; |
11 | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
12 import dmd.DDMDExtensions; |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
13 |
178 | 14 class Condition : TObject |
0 | 15 { |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
16 mixin insertMemberExtension!(typeof(this)); |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
17 |
0 | 18 Loc loc; |
19 int inc = 0;// 0: not computed yet | |
20 // 1: include | |
21 // 2: do not include | |
22 | |
23 this(Loc loc) | |
24 { | |
178 | 25 register(); |
0 | 26 this.loc = loc; |
27 } | |
28 | |
29 abstract Condition syntaxCopy(); | |
30 abstract bool include(Scope sc, ScopeDsymbol s); | |
31 abstract void toCBuffer(OutBuffer buf, HdrGenState* hgs); | |
32 } |