Variable: treesit-defun-name-function
treesit-defun-name-function is a buffer-local variable defined in
treesit.el.gz.
Documentation
A function that is called with a node and returns its defun name or nil.
If the node is a defun node, return the defun name, e.g., the name of a function. If the node is not a defun node, or the defun node doesn't have a name, or the node is nil, return nil.
Source Code
;; Defined in /usr/src/emacs/lisp/treesit.el.gz
(defvar-local treesit-defun-name-function nil
"A function that is called with a node and returns its defun name or nil.
If the node is a defun node, return the defun name, e.g., the
name of a function. If the node is not a defun node, or the
defun node doesn't have a name, or the node is nil, return nil.")