Correct currentNode on TreeCursor

It's a method not a getter in this implementation
This commit is contained in:
Stafford Brunk 2019-07-17 22:32:00 -06:00
parent a21d355ade
commit e5ee59c051
No known key found for this signature in database
GPG key ID: FA8D5C2ED2587ADC

View file

@ -92,9 +92,9 @@ declare module 'web-tree-sitter' {
endPosition: Point;
startIndex: number;
endIndex: number;
readonly currentNode: SyntaxNode
reset(node: SyntaxNode): void
currentNode(): SyntaxNode;
gotoParent(): boolean;
gotoFirstChild(): boolean;
gotoFirstChildForIndex(index: number): boolean;