Function: neocaml--imenu-name
neocaml--imenu-name is a natively compiled function defined in
neocaml.el.
Signature
(neocaml--imenu-name NODE)
Documentation
Return the fully-qualified name of NODE by walking up the tree.
Joins ancestor defun names with treesit-add-log-defun-delimiter.
Source Code
;; Defined in /nix/store/ahssdx4rwzyxhyhavpn0bkznk13xrggi-emacs-packages-deps/share/emacs/site-lisp/elpa/neocaml-20260907.2015/neocaml.el
;;;; imenu integration
(defun neocaml--imenu-name (node)
"Return the fully-qualified name of NODE by walking up the tree.
Joins ancestor defun names with `treesit-add-log-defun-delimiter'."
(let ((name nil))
(while node
(when-let* ((new-name (treesit-defun-name node)))
(if name
(setq name (concat new-name
treesit-add-log-defun-delimiter
name))
(setq name new-name)))
(setq node (treesit-node-parent node)))
name))