'Gets the ending index for the provided line number.
Arguments:
line_number: The line number of the line for which we want to find
the end index.
Returns:
The ending index for the provided line number.'

def line_number_to_end_index(self, line_number):

    if (line_number < len(self._line_start_indexes)):
        return self._line_start_indexes[line_number]
    else:
        return self.eof_index
