Function: haskell-ts-current-function-bound

haskell-ts-current-function-bound is a natively compiled function defined in haskell-ts-mode.el.

Signature

(haskell-ts-current-function-bound)

Documentation

Get start and end point of current funciton.

Source Code

;; Defined in /nix/store/84k99g1lc4gz6zw2djcsyzr9zviz842h-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-ts-mode-1.3.5/haskell-ts-mode.el
(defun haskell-ts-current-function-bound ()
  "Get start and end point of current funciton."
  (let (start end)
    (save-excursion
      (mark-defun)
      (setq start (region-beginning))
      (setq end (region-end))
      (deactivate-mark))
    (list start end)))