Function: go-ts-mode--find-defun-at

go-ts-mode--find-defun-at is a byte-compiled function defined in go-ts-mode.el.gz.

Signature

(go-ts-mode--find-defun-at START)

Documentation

Return the first defun node from START.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/go-ts-mode.el.gz
(defun go-ts-mode--find-defun-at (start)
  "Return the first defun node from START."
  (let ((thing (or treesit-defun-type-regexp 'defun)))
    (or (treesit-thing-at start thing)
        (treesit-thing-next start thing))))