public override bool Render(RenderContext dest) { dest.Append("for("); if (VariableDeclaration != null) { VariableDeclaration.Render(dest); } else { Iterator.Render(dest); } dest.Append("in"); Collection.Render(dest); dest.Append(")"); return(Code.RenderIndented(dest)); }
public override bool Render(RenderContext dest) { dest.Append("for("); if (Initialize != null) { Initialize.Render(dest); } dest.Append(";"); if (Condition != null) { Condition.Render(dest); } dest.Append(";"); if (Increment != null) { Increment.Render(dest); } dest.Append(")"); return(Code.RenderIndented(dest)); }