Mercurial > projects > ddmd
comparison dmd/IfStatement.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 | cab4c37afb89 |
comparison
equal
deleted
inserted
replaced
50:adf6f7f216ea | 51:b7d29f613539 |
---|---|
47 this.elsebody = elsebody; | 47 this.elsebody = elsebody; |
48 } | 48 } |
49 | 49 |
50 Statement syntaxCopy() | 50 Statement syntaxCopy() |
51 { | 51 { |
52 assert(false); | 52 Statement i = null; |
53 if (ifbody) | |
54 i = ifbody.syntaxCopy(); | |
55 | |
56 Statement e = null; | |
57 if (elsebody) | |
58 e = elsebody.syntaxCopy(); | |
59 | |
60 Argument a = arg ? arg.syntaxCopy() : null; | |
61 IfStatement s = new IfStatement(loc, a, condition.syntaxCopy(), i, e); | |
62 return s; | |
53 } | 63 } |
54 | 64 |
55 Statement semantic(Scope sc) | 65 Statement semantic(Scope sc) |
56 { | 66 { |
57 condition = condition.semantic(sc); | 67 condition = condition.semantic(sc); |