Skip to main content

Class: VscodeTextLineImpl

ide/vscode/VscodeTextLineImpl.VscodeTextLineImpl

Implements

Constructors

constructor

new VscodeTextLineImpl(line)

Parameters

NameType
lineTextLine

Defined in

ide/vscode/VscodeTextLineImpl.ts:6

Accessors

firstNonWhitespaceCharacterIndex

get firstNonWhitespaceCharacterIndex(): number

The offset of the first character which is not a whitespace character as defined by /\s/. Note that if a line is all whitespace the length of the line is returned.

Returns

number

Implementation of

TextLine.firstNonWhitespaceCharacterIndex

Defined in

ide/vscode/VscodeTextLineImpl.ts:24


isEmptyOrWhitespace

get isEmptyOrWhitespace(): boolean

Whether this line is whitespace only, shorthand for TextLine.firstNonWhitespaceCharacterIndex === TextLine.text.length.

Returns

boolean

Implementation of

TextLine.isEmptyOrWhitespace

Defined in

ide/vscode/VscodeTextLineImpl.ts:32


lastNonWhitespaceCharacterIndex

get lastNonWhitespaceCharacterIndex(): number

The offset of the last character which is not a whitespace character as defined by /\s/. Note that if a line is all whitespace 0 is returned.

Returns

number

Implementation of

TextLine.lastNonWhitespaceCharacterIndex

Defined in

ide/vscode/VscodeTextLineImpl.ts:28


lineNumber

get lineNumber(): number

The zero-based line number.

Returns

number

Implementation of

TextLine.lineNumber

Defined in

ide/vscode/VscodeTextLineImpl.ts:8


range

get range(): Range

The range this line covers without the line separator characters.

Returns

Range

Implementation of

TextLine.range

Defined in

ide/vscode/VscodeTextLineImpl.ts:16


rangeIncludingLineBreak

get rangeIncludingLineBreak(): Range

The range this line covers with the line separator characters.

Returns

Range

Implementation of

TextLine.rangeIncludingLineBreak

Defined in

ide/vscode/VscodeTextLineImpl.ts:20


text

get text(): string

The text of this line without the line separator characters.

Returns

string

Implementation of

TextLine.text

Defined in

ide/vscode/VscodeTextLineImpl.ts:12