Class: VscodeTextLineImpl
ide/vscode/VscodeTextLineImpl.VscodeTextLineImpl
Implements
Constructors
constructor
• new VscodeTextLineImpl(line
)
Parameters
Name | Type |
---|---|
line | TextLine |
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
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
Defined in
ide/vscode/VscodeTextLineImpl.ts:8
range
• get
range(): Range
The range this line covers without the line separator characters.
Returns
Implementation of
Defined in
ide/vscode/VscodeTextLineImpl.ts:16
rangeIncludingLineBreak
• get
rangeIncludingLineBreak(): Range
The range this line covers with the line separator characters.
Returns
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
Defined in
ide/vscode/VscodeTextLineImpl.ts:12