tree_sitter::ffi

Function ts_parser_print_dot_graphs

Source
pub unsafe extern "C" fn ts_parser_print_dot_graphs(
    self_: *mut TSParser,
    fd: c_int,
)
Expand description

Set the file descriptor to which the parser should write debugging graphs during parsing. The graphs are formatted in the DOT language. You may want to pipe these graphs directly to a dot(1) process in order to generate SVG output. You can turn off this logging by passing a negative number.