Function: treesit-node-string
treesit-node-string is a function defined in treesit.c.
Signature
(treesit-node-string NODE)
Documentation
Return the string representation of NODE.
If NODE is nil, return nil.
Other relevant functions are documented in the treesit group.
Shortdoc
;; treesit
(treesit-node-string node)
e.g. => (init_declarator declarator: (identifier) value: (number_literal))
Source Code
// Defined in /usr/src/emacs/src/treesit.c
{
if (NILP (node)) return Qnil;
treesit_check_node (node);
treesit_initialize ();
TSNode treesit_node = XTS_NODE (node)->node;
char *string = ts_node_string (treesit_node);
return build_string (string);
}