language_field_name_for_id {treesitter}R Documentation

Language field names

Description

Get the field name for a field identifier.

Usage

language_field_name_for_id(x, id)

Arguments

x

⁠[tree_sitter_language]⁠

A tree-sitter language object.

id

⁠[integer]⁠

The language field identifiers to look up field names for.

Value

A character vector the same length as id containing:

See Also

language_field_id_for_name()

Examples


language <- treesitter.r::language()
language_field_name_for_id(language, 1)


[Package treesitter version 0.1.0 Index]