Skip to contents

Renders a ts_tree or ts_node as an indented tree.

Arguments

x

A ts_tree or ts_node.

position

If TRUE, include each node's start-end (row, column) point range in the label. Defaults to FALSE.

text

If TRUE (the default), include the source-text snippet for leaf nodes that carry one.

color

For ts_tree, whether to use ANSI colour when printing attached diagnostics. Defaults to whether the terminal supports it.

...

Unused; present for S3/S7 compatibility.

Value

x, invisibly.