Range

constructor(start: Position, end: Position)(source)

Create a new range from two positions. If start is not before or equal to end, the values will be swapped.

Parameters

start

A position.

end

constructor(startLine: Int, startCharacter: Int, endLine: Int, endCharacter: Int)(source)

Create a new range from number coordinates. It is a shorter equivalent of using new Range(new Position(startLine, startCharacter), new Position(endLine, endCharacter))

Parameters

startLine

A zero-based line value.

startCharacter

A zero-based character value.

endLine

A zero-based line value.

endCharacter

A zero-based character value.

Online Documentation