Mercurial > projects > ddmd
annotate dmd/AlignDeclaration.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 | 7e0d548de9e6 |
children | e3afd1303184 |
rev | line source |
---|---|
0 | 1 module dmd.AlignDeclaration; |
2 | |
114 | 3 import dmd.common; |
0 | 4 import dmd.AttribDeclaration; |
5 import dmd.OutBuffer; | |
6 import dmd.HdrGenState; | |
7 import dmd.Scope; | |
8 import dmd.Dsymbol; | |
9 import dmd.Array; | |
10 | |
11 class AlignDeclaration : AttribDeclaration | |
12 { | |
13 uint salign; | |
14 | |
74
7e0d548de9e6
Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
72
diff
changeset
|
15 this(uint sa, Dsymbols decl) |
0 | 16 { |
17 super(decl); | |
18 salign = sa; | |
19 } | |
20 | |
72 | 21 override Dsymbol syntaxCopy(Dsymbol s) |
0 | 22 { |
23 assert(false); | |
24 } | |
25 | |
72 | 26 override void setScope(Scope sc) |
0 | 27 { |
28 //printf("\tAlignDeclaration::setScope '%s'\n",toChars()); | |
29 if (decl) | |
30 { | |
31 setScopeNewSc(sc, sc.stc, sc.linkage, sc.protection, sc.explicitProtection, salign); | |
32 } | |
33 } | |
34 | |
72 | 35 override void semantic(Scope sc) |
0 | 36 { |
37 //printf("\tAlignDeclaration::semantic '%s'\n",toChars()); | |
38 if (decl) | |
39 { | |
40 semanticNewSc(sc, sc.stc, sc.linkage, sc.protection, sc.explicitProtection, salign); | |
41 } | |
42 } | |
43 | |
72 | 44 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
0 | 45 { |
46 assert(false); | |
47 } | |
72 | 48 } |