printDotGraphs method

void printDotGraphs(
  1. TreeSitterDebugGraphSink sink
)

Starts parser debug-graph emission into a managed text sink.

The stream contains native-equivalent log-label graphs, complete GSS stack graphs after advances, and complete old/finished subtree graphs. Native Tree-sitter owns a duplicate of the caller's file descriptor; pure Dart equivalently retains this callback until it is replaced, stopPrintingDotGraphs is called, or the parser is disposed. The caller continues to own and may use the sink after any of those boundaries.

Implementation

void printDotGraphs(TreeSitterDebugGraphSink sink) => setDebugGraphSink(sink);