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 |
A tree-sitter language object. |
id |
The language field identifiers to look up field names for. |
Value
A character vector the same length as id
containing:
The field name for the field identifier, if known.
-
NA
, if the field identifier was not known.
See Also
Examples
language <- treesitter.r::language()
language_field_name_for_id(language, 1)
[Package treesitter version 0.1.0 Index]