Range class

Range class

Constructors

Range(number, number, number, number)

Creates a new instance of the Range class.

Range(Position, Position)

Creates a new instance of the Range class.

Properties

DefaultRange
end
start

Methods

toString()

Constructor Details

Range(number, number, number, number)

Creates a new instance of the Range class.

new Range(startLine: number, startChar: number, endLine: number, endChar: number)

Parameters

startLine

number

startChar

number

endLine

number

Ending line number in a file.

endChar

number

Ending character number in the end line.

Range(Position, Position)

Creates a new instance of the Range class.

new Range(start: Position, end: Position)

Parameters

start
Position

Starting Position.

end
Position

Ending Position.

Property Details

DefaultRange

static DefaultRange: Range = new Range(1, 0, 1, 0)

Property Value

end

end: Position

Property Value

start

start: Position

Property Value

Method Details

toString()

function toString(): string

Returns

string