Interface: TreeCursor
typings/treeSitter.Parser.TreeCursor
Properties
endIndex
• endIndex: number
Defined in
typings/treeSitter.ts:121
endPosition
• endPosition: Point
Defined in
typings/treeSitter.ts:119
nodeIsNamed
• nodeIsNamed: boolean
Defined in
typings/treeSitter.ts:117
nodeText
• nodeText: string
Defined in
typings/treeSitter.ts:116
nodeType
• nodeType: string
Defined in
typings/treeSitter.ts:115
startIndex
• startIndex: number
Defined in
typings/treeSitter.ts:120
startPosition
• startPosition: Point
Defined in
typings/treeSitter.ts:118
Methods
currentFieldId
▸ currentFieldId(): number
Returns
number
Defined in
typings/treeSitter.ts:126
currentFieldName
▸ currentFieldName(): string
Returns
string
Defined in
typings/treeSitter.ts:127
currentNode
▸ currentNode(): SyntaxNode
Returns
Defined in
typings/treeSitter.ts:125
delete
▸ delete(): void
Returns
void
Defined in
typings/treeSitter.ts:124
gotoFirstChild
▸ gotoFirstChild(): boolean
Returns
boolean
Defined in
typings/treeSitter.ts:129
gotoFirstChildForIndex
▸ gotoFirstChildForIndex(index
): boolean
Parameters
Name | Type |
---|---|
index | number |
Returns
boolean
Defined in
typings/treeSitter.ts:130
gotoNextSibling
▸ gotoNextSibling(): boolean
Returns
boolean
Defined in
typings/treeSitter.ts:131
gotoParent
▸ gotoParent(): boolean
Returns
boolean
Defined in
typings/treeSitter.ts:128
reset
▸ reset(node
): void
Parameters
Name | Type |
---|---|
node | SyntaxNode |
Returns
void
Defined in
typings/treeSitter.ts:123