Interface: SyntaxNode
typings/treeSitter.Parser.SyntaxNode
Properties
childCount
• childCount: number
Defined in
typings/treeSitter.ts:69
children
• children: SyntaxNode
[]
Defined in
typings/treeSitter.ts:67
endIndex
• endIndex: number
Defined in
typings/treeSitter.ts:65
endPosition
• endPosition: Point
Defined in
typings/treeSitter.ts:63
firstChild
• firstChild: null
| SyntaxNode
Defined in
typings/treeSitter.ts:71
firstNamedChild
• firstNamedChild: null
| SyntaxNode
Defined in
typings/treeSitter.ts:72
id
• id: number
Defined in
typings/treeSitter.ts:58
lastChild
• lastChild: null
| SyntaxNode
Defined in
typings/treeSitter.ts:73
lastNamedChild
• lastNamedChild: null
| SyntaxNode
Defined in
typings/treeSitter.ts:74
namedChildCount
• namedChildCount: number
Defined in
typings/treeSitter.ts:70
namedChildren
• namedChildren: SyntaxNode
[]
Defined in
typings/treeSitter.ts:68
nextNamedSibling
• nextNamedSibling: null
| SyntaxNode
Defined in
typings/treeSitter.ts:76
nextSibling
• nextSibling: null
| SyntaxNode
Defined in
typings/treeSitter.ts:75
parent
• parent: null
| SyntaxNode
Defined in
typings/treeSitter.ts:66
previousNamedSibling
• previousNamedSibling: null
| SyntaxNode
Defined in
typings/treeSitter.ts:78
previousSibling
• previousSibling: null
| SyntaxNode
Defined in
typings/treeSitter.ts:77
startIndex
• startIndex: number
Defined in
typings/treeSitter.ts:64
startPosition
• startPosition: Point
Defined in
typings/treeSitter.ts:62
text
• text: string
Defined in
typings/treeSitter.ts:61
tree
• tree: Tree
Defined in
typings/treeSitter.ts:59
type
• type: string
Defined in
typings/treeSitter.ts:60
Methods
child
▸ child(index
): null
| SyntaxNode
Parameters
Name | Type |
---|---|
index | number |
Returns
null
| SyntaxNode
Defined in
typings/treeSitter.ts:86
childForFieldId
▸ childForFieldId(fieldId
): null
| SyntaxNode
Parameters
Name | Type |
---|---|
fieldId | number |
Returns
null
| SyntaxNode
Defined in
typings/treeSitter.ts:88
childForFieldName
▸ childForFieldName(fieldName
): null
| SyntaxNode
Parameters
Name | Type |
---|---|
fieldName | string |
Returns
null
| SyntaxNode
Defined in
typings/treeSitter.ts:89
descendantForIndex
▸ descendantForIndex(index
): SyntaxNode
Parameters
Name | Type |
---|---|
index | number |
Returns
Defined in
typings/treeSitter.ts:91
▸ descendantForIndex(startIndex
, endIndex
): SyntaxNode
Parameters
Name | Type |
---|---|
startIndex | number |
endIndex | number |
Returns
Defined in
typings/treeSitter.ts:92
descendantForPosition
▸ descendantForPosition(position
): SyntaxNode
Parameters
Name | Type |
---|---|
position | Point |
Returns
Defined in
typings/treeSitter.ts:100
▸ descendantForPosition(startPosition
, endPosition
): SyntaxNode
Parameters
Name | Type |
---|---|
startPosition | Point |
endPosition | Point |
Returns
Defined in
typings/treeSitter.ts:101
descendantsOfType
▸ descendantsOfType(type
, startPosition?
, endPosition?
): SyntaxNode
[]
Parameters
Name | Type |
---|---|
type | string | string [] |
startPosition? | Point |
endPosition? | Point |
Returns
Defined in
typings/treeSitter.ts:93
equals
▸ equals(other
): boolean
Parameters
Name | Type |
---|---|
other | SyntaxNode |
Returns
boolean
Defined in
typings/treeSitter.ts:82
hasChanges
▸ hasChanges(): boolean
Returns
boolean
Defined in
typings/treeSitter.ts:80
hasError
▸ hasError(): boolean
Returns
boolean
Defined in
typings/treeSitter.ts:81
isMissing
▸ isMissing(): boolean
Returns
boolean
Defined in
typings/treeSitter.ts:83
isNamed
▸ isNamed(): boolean
Returns
boolean
Defined in
typings/treeSitter.ts:84
namedChild
▸ namedChild(index
): null
| SyntaxNode
Parameters
Name | Type |
---|---|
index | number |
Returns
null
| SyntaxNode
Defined in
typings/treeSitter.ts:87
namedDescendantForIndex
▸ namedDescendantForIndex(index
): SyntaxNode
Parameters
Name | Type |
---|---|
index | number |
Returns
Defined in
typings/treeSitter.ts:98
▸ namedDescendantForIndex(startIndex
, endIndex
): SyntaxNode
Parameters
Name | Type |
---|---|
startIndex | number |
endIndex | number |
Returns
Defined in
typings/treeSitter.ts:99
namedDescendantForPosition
▸ namedDescendantForPosition(position
): SyntaxNode
Parameters
Name | Type |
---|---|
position | Point |
Returns
Defined in
typings/treeSitter.ts:105
▸ namedDescendantForPosition(startPosition
, endPosition
): SyntaxNode
Parameters
Name | Type |
---|---|
startPosition | Point |
endPosition | Point |
Returns
Defined in
typings/treeSitter.ts:106
toString
▸ toString(): string
Returns
string
Defined in
typings/treeSitter.ts:85
walk
▸ walk(): TreeCursor
Returns
Defined in
typings/treeSitter.ts:111