comparison dmd/CompoundDeclarationStatement.d @ 51:b7d29f613539

StaticAssertStatement.syntaxCopy IfStatement.syntaxCopy CompoundDeclarationStatement.syntaxCopy VoidInitializer.syntaxCopy TypeAArray.syntaxCopy TypeTypeof.syntaxCopy TypeAArray.resolve TypeSArray.deduceType TypeAArray.deduceType TypeAArray.implicitConvTo TemplateDeclaration.leastAsSpecialized TemplateTypeParameter.dummyArg TypeIdentifier.deduceType TemplateTypeParameter.syntaxCopy Lexer.hexStringConstant Lexer.delimitedStringConstant GotoDefaultStatement.ctor CaseRangeStatement.ctor Type.castMod StorageClassDeclaration.syntaxCopy TemplateDeclaration.syntaxCopy
author korDen
date Sat, 21 Aug 2010 11:17:42 +0400
parents 10317f0c89a5
children 2e2a5c3f943a
comparison
equal deleted inserted replaced
50:adf6f7f216ea 51:b7d29f613539
15 ///statements = s; 15 ///statements = s;
16 } 16 }
17 17
18 Statement syntaxCopy() 18 Statement syntaxCopy()
19 { 19 {
20 assert(false); 20 Statements a = new Statements();
21 a.setDim(statements.dim);
22 for (size_t i = 0; i < statements.dim; i++)
23 {
24 Statement s = cast(Statement)statements.data[i];
25 if (s)
26 s = s.syntaxCopy();
27 a.data[i] = cast(void*)s;
28 }
29 CompoundDeclarationStatement cs = new CompoundDeclarationStatement(loc, a);
30 return cs;
21 } 31 }
22 32
23 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 33 void toCBuffer(OutBuffer buf, HdrGenState* hgs)
24 { 34 {
25 assert(false); 35 assert(false);