package tree-sitter
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Tree_sitter.LanguageSource
Language grammars.
A Language.t describes the grammar rules, symbols, and fields for a particular programming language. Obtain one from a grammar package (e.g. Tree_sitter_json.language ()) rather than calling of_address directly.
The type for Tree-sitter language grammars.
Constructors
of_address addr is a language from a native pointer addr.
Warning. addr must point to a valid TSLanguage returned by a tree_sitter_<lang>() C function. Prefer grammar-package helpers (e.g. Tree_sitter_json.language ()) instead.
Properties
Symbol lookups
symbol_type lang id is the symbol_type of symbol id.
symbol_for_name lang name ~named is the symbol ID for name, if any. When ~named is true, only named (non-anonymous) symbols are searched.
Field lookups
field_name_for_id lang id is the field name for id, if any.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page