language_field_id_for_name | R Documentation |
Get the integer field identifier for a field name. If you are going to be using a field name repeatedly, it is often a little faster to use the corresponding field identifier instead.
language_field_id_for_name(x, name)
x |
A tree-sitter language object. |
name |
The language field names to look up field identifiers for. |
An integer vector the same length as name
containing:
The field identifier for the field name, if known.
NA
, if the field name was not known.
language_field_name_for_id()
language <- treesitter.r::language()
language_field_id_for_name(language, "lhs")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.