range

open fun range(begin: Position, end: Position): Range(source)

Create a new `Range` object using the given begin and end position.

Return

A new `Range` object with the given start/end position.

Parameters

begin

The starting position of the range.

end

The end position of the range.


open fun range(beginLine: Int, beginColumn: Int, endLine: Int, endColumn: Int): Range(source)

Create a new `Range` object using the given begin and end line/column values. Valid values for each parameter are per the constructor ofPosition.

Return

A new `Range` object with the given start/end position.

Parameters

beginLine

The start line of the range.

beginColumn

The start line column of the range.

endLine

The end line of the range.

endColumn

The end column of the range.