private void CreateForeachStatement(int startIndex, ForeachToken token, int endIndex) { int count = endIndex - startIndex - 1; var statement = new ForeachStatement(this[startIndex].StartOffset, token, GetRange(startIndex + 1, count), token.TargetOffset); ReplaceRange(startIndex, endIndex - startIndex, statement); statement.ProcessChildren(); }