Returns the end position of a source range.