Range

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

A range of characters in a source file, from "begin" to "end". This range is inclusive of the characters at the "begin" and "end" positions.

Note that if the given parameters are reversed (i.e. the end is earlier than begin, then the values are swapped.

Parameters

begin

The starting position of the range.

end

The end position of the range.