Skip to content

Latest commit

 

History

History
95 lines (52 loc) · 2.59 KB

codearts_plugin_.TextLine.md

File metadata and controls

95 lines (52 loc) · 2.59 KB

@codearts/plugin / "@codearts/plugin" / TextLine

Interface: TextLine

"@codearts/plugin".TextLine

Represents a line of text, such as a line of source code.

TextLine objects are immutable. When a document changes, previously retrieved lines will not represent the latest state.

Table of contents

Properties

Properties

firstNonWhitespaceCharacterIndex

Readonly 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.

Defined in

index.d.ts:83


isEmptyOrWhitespace

Readonly isEmptyOrWhitespace: boolean

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

Defined in

index.d.ts:89


lineNumber

Readonly lineNumber: number

The zero-based line number.

Defined in

index.d.ts:62


range

Readonly range: Range

The range this line covers without the line separator characters.

Defined in

index.d.ts:72


rangeIncludingLineBreak

Readonly rangeIncludingLineBreak: Range

The range this line covers with the line separator characters.

Defined in

index.d.ts:77


text

Readonly text: string

The text of this line without the line separator characters.

Defined in

index.d.ts:67