TreeSitterTreeCursor class final

Mutable cursor matching Tree-sitter's visible-node traversal semantics.

Constructors

TreeSitterTreeCursor(TreeSitterNode node)
TreeSitterTreeCursor.fromRaw(TreeSitterRawHandle<TreeSitterTreeCursor> raw)
Reconstructs ownership of a cursor transferred through intoRaw.
factory

Properties

currentStatus TreeSitterTreeCursorStatus
no setter
depth int
no setter
descendantIndex int
no setter
fieldId int?
no setter
fieldName String?
no setter
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
no setter
node TreeSitterNode
no setter
parentNode TreeSitterNode?
The current visible parent within this cursor's traversal root.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copy() TreeSitterTreeCursor
dispose() → void
Releases this cursor's traversal stack, matching ts_tree_cursor_delete. A disposed cursor cannot be reused.
gotoDescendant(int descendantIndex) → void
gotoFirstChild() bool
gotoFirstChildForByte(int goalByte) int?
gotoFirstChildForPoint(TreeSitterPoint goalPoint) int?
gotoLastChild() bool
gotoNextSibling() bool
gotoParent() bool
gotoPreviousSibling() bool
intoRaw() TreeSitterRawHandle<TreeSitterTreeCursor>
Moves this cursor and its traversal stack into a raw handle.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset(TreeSitterNode node) → void
resetTo(TreeSitterTreeCursor other) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited