language_field_name_for_id: Language field names

View source: R/language.R

language_field_name_for_idR 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:

  • The field name for the field identifier, if known.

  • NA, if the field identifier was not known.

See Also

language_field_id_for_name()

Examples


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


treesitter documentation built on June 24, 2024, 5:07 p.m.