tree_sitter::ffi

Function ts_node_grammar_symbol

source
pub unsafe extern "C" fn ts_node_grammar_symbol(
    self_: TSNode,
) -> TSSymbol
Expand description

Get the node’s type as a numerical id as it appears in the grammar ignoring aliases. This should be used in ts_language_next_state instead of ts_node_symbol.