Function: c-ts-mode--emacs-defun-body-p

c-ts-mode--emacs-defun-body-p is a byte-compiled function defined in c-ts-mode.el.gz.

Signature

(c-ts-mode--emacs-defun-body-p NODE)

Documentation

Return non-nil if NODE is the function body of a DEFUN.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/c-ts-mode.el.gz
(defun c-ts-mode--emacs-defun-body-p (node)
  "Return non-nil if NODE is the function body of a DEFUN."
  (and (equal (treesit-node-type node) "compound_statement")
       (c-ts-mode--emacs-defun-p (treesit-node-prev-sibling node))))