public void Visit(SteWhileLoop code) { if (code.DoLoop) { TextComposer .AppendAtNewLine("do") .AppendLine("{") .IncreaseIndentation(); code.LoopCode.AcceptVisitor(this); TextComposer .DecreaseIndentation() .AppendAtNewLine("} while ("); code.LoopCondition.AcceptVisitor(this); TextComposer.AppendNewLine(");"); return; } TextComposer.AppendAtNewLine("while ("); code.LoopCondition.AcceptVisitor(this); TextComposer .AppendLine(")") .AppendLine("{") .IncreaseIndentation(); code.LoopCode.AcceptVisitor(this); TextComposer .DecreaseIndentation() .AppendLineAtNewLine("}"); }