Mercurial > projects > ddmd
annotate dmd/CompoundDeclarationStatement.d @ 146:af7e5ebef6ad
redundant extern(C)
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Tue, 14 Sep 2010 23:34:50 +0100 |
parents | c77e9f4f1793 |
children | af724d3510d7 |
rev | line source |
---|---|
0 | 1 module dmd.CompoundDeclarationStatement; |
2 | |
114 | 3 import dmd.common; |
0 | 4 import dmd.CompoundStatement; |
5 import dmd.Loc; | |
6 import dmd.ArrayTypes; | |
7 import dmd.Statement; | |
8 import dmd.OutBuffer; | |
9 import dmd.HdrGenState; | |
10 | |
11 class CompoundDeclarationStatement : CompoundStatement | |
12 { | |
13 this(Loc loc, Statements s) | |
14 { | |
15 super(loc, s); | |
16 ///statements = s; | |
17 } | |
18 | |
72 | 19 override Statement syntaxCopy() |
0 | 20 { |
51 | 21 Statements a = new Statements(); |
22 a.setDim(statements.dim); | |
23 for (size_t i = 0; i < statements.dim; i++) | |
24 { | |
122
c77e9f4f1793
Statements -> Vector
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
114
diff
changeset
|
25 Statement s = statements[i]; |
51 | 26 if (s) |
27 s = s.syntaxCopy(); | |
122
c77e9f4f1793
Statements -> Vector
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents:
114
diff
changeset
|
28 a[i] = s; |
51 | 29 } |
30 CompoundDeclarationStatement cs = new CompoundDeclarationStatement(loc, a); | |
31 return cs; | |
0 | 32 } |
33 | |
72 | 34 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
0 | 35 { |
36 assert(false); | |
37 } | |
72 | 38 } |