tree-accessors {treesitter}R Documentation

Tree accessors

Description

Usage

tree_included_ranges(x)

tree_text(x)

tree_language(x)

Arguments

x

⁠[tree_sitter_tree]⁠

A tree.

Value

Examples


language <- treesitter.r::language()
parser <- parser(language)

text <- "1 + foo"
tree <- parser_parse(parser, text)

tree_text(tree)
tree_language(tree)
tree_included_ranges(tree)


[Package treesitter version 0.1.0 Index]