Function: js--end-of-defun-flat

js--end-of-defun-flat is a byte-compiled function defined in js.el.gz.

Signature

(js--end-of-defun-flat)

Documentation

Helper function for js-end-of-defun.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js--end-of-defun-flat ()
  "Helper function for `js-end-of-defun'."
  (cl-loop while (js--re-search-forward "}" nil t)
           do (js--ensure-cache)
           if (get-text-property (1- (point)) 'js--pend)
           if (eq 'function (js--pitem-type it))
           return t
           finally do (goto-char (point-max))))