TreeCursor class

Efficient stateful cursor for tree traversal. Uses a stack internally.

Properties

from int
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
no setter
node SyntaxNode
Build a SyntaxNode from the current cursor position.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
to int
no setter
type NodeType
no setter

Methods

firstChild() bool
lastChild() bool
next() bool
Depth-first traversal: try firstChild, then nextSibling, then walk up ancestors to find a nextSibling.
nextSibling() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parent() bool
prevSibling() bool
toString() String
A string representation of this object.
inherited

Operators

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