comparison dmd/WhileStatement.d @ 62:6557375aff35

InExp.opId_r WhileStatement.syntaxCopy
author korDen
date Mon, 23 Aug 2010 03:21:32 +0400
parents 51605de93870
children cab4c37afb89
comparison
equal deleted inserted replaced
61:4ae0d790a452 62:6557375aff35
24 body_ = b; 24 body_ = b;
25 } 25 }
26 26
27 Statement syntaxCopy() 27 Statement syntaxCopy()
28 { 28 {
29 assert(false); 29 WhileStatement s = new WhileStatement(loc, condition.syntaxCopy(), body_ ? body_.syntaxCopy() : null);
30 return s;
30 } 31 }
31 32
32 Statement semantic(Scope sc) 33 Statement semantic(Scope sc)
33 { 34 {
34 /* Rewrite as a for(;condition;) loop 35 /* Rewrite as a for(;condition;) loop