public override Yielding Copy(string renameSuffix) { CaseStatement[] caseStatementsCopy = new CaseStatement[CaseStatements.Length]; for(int i = 0; i < CaseStatements.Length; ++i) caseStatementsCopy[i] = (CaseStatement)CaseStatements[i].Copy(renameSuffix); return new SwitchStatement(SwitchExpression.Copy(renameSuffix), caseStatementsCopy); }
public SwitchStatement(Expression switchExpression, CaseStatement[] caseStatements) { SwitchExpression = switchExpression; CaseStatements = caseStatements; }