Mercurial > projects > ddmd
comparison dmd/ConditionalStatement.d @ 49:0aa7d1437ada
AttribDeclaration.oneMember
Lexer.decodeUTF
WithStatement.ctor
StructDeclaration.syntaxCopy
CtorDeclaration.syntaxCopy
ConditionalStatement.syntaxCopy
ProtDeclaration.syntaxCopy
ArrayScopeSymbol.this
TemplateDeclaration.toChars
author | korDen |
---|---|
date | Sat, 21 Aug 2010 07:53:20 +0400 |
parents | 10317f0c89a5 |
children | 4290d870944a |
comparison
equal
deleted
inserted
replaced
48:0bd8afbaffd7 | 49:0aa7d1437ada |
---|---|
23 this.elsebody = elsebody; | 23 this.elsebody = elsebody; |
24 } | 24 } |
25 | 25 |
26 Statement syntaxCopy() | 26 Statement syntaxCopy() |
27 { | 27 { |
28 assert(false); | 28 Statement e = null; |
29 if (elsebody) | |
30 e = elsebody.syntaxCopy(); | |
31 ConditionalStatement s = new ConditionalStatement(loc, condition.syntaxCopy(), ifbody.syntaxCopy(), e); | |
32 return s; | |
29 } | 33 } |
30 | 34 |
31 Statement semantic(Scope sc) | 35 Statement semantic(Scope sc) |
32 { | 36 { |
33 assert(false); | 37 assert(false); |