Add APIs to efficiently traverse the syntax tree: tsc-traverse-do, tsc-traverse-mapc, tsc-traverse-iter. The traversal is depth-first pre-order.
Improve syntax tree rendering's performance in tree-sitter-debug.
Add optional params props and output to tsc-current-node, which allows retrieving node properties, instead of the node object itself. This enables performance optimizations in uses cases that deal with a large number of nodes.
tsc-traverse-do
,tsc-traverse-mapc
,tsc-traverse-iter
. The traversal is depth-first pre-order.tree-sitter-debug
.props
andoutput
totsc-current-node
, which allows retrieving node properties, instead of the node object itself. This enables performance optimizations in uses cases that deal with a large number of nodes.