withEndLine

open fun withEndLine(endLine: Int): Range(source)

Return

A copy of this `Range` object, but with the end line number replaced with the given line number.

Parameters

endLine

The value used to replace the current end line number. Valid values are per the constructor ofPosition.