protected void copyForStatement(CASTForStatement copy, CopyStyle style) { copy.setInitializerStatement(init == null ? null : init.copy(style)); copy.setConditionExpression(condition == null ? null : condition.copy(style)); copy.setIterationExpression( iterationExpression == null ? null : iterationExpression.copy(style)); copy.setBody(body == null ? null : body.copy(style)); copy.setOffsetAndLength(this); }
public CASTForStatement( IASTStatement init, IASTExpression condition, IASTExpression iterationExpression, IASTStatement body) { setInitializerStatement(init); setConditionExpression(condition); setIterationExpression(iterationExpression); setBody(body); }