Function: cider-eldoc-info-at-point

cider-eldoc-info-at-point is a byte-compiled function defined in cider-eldoc.el.

Signature

(cider-eldoc-info-at-point)

Documentation

Return eldoc info at point.

First go to the beginning of the sexp and check if the eldoc is to be considered (i.e sexp is a method call) and not a map or vector literal. Then go back to the point and return its eldoc.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-eldoc.el
(defun cider-eldoc-info-at-point ()
  "Return eldoc info at point.
First go to the beginning of the sexp and check if the eldoc is to be
considered (i.e sexp is a method call) and not a map or vector literal.
Then go back to the point and return its eldoc."
  (save-excursion
    (unless (cider-in-comment-p)
      (let* ((current-point (point)))
        (cider-eldoc-beginning-of-sexp)
        (unless (member (or (char-before (point)) 0) '(?\" ?\{ ?\[))
          (goto-char current-point)
          (when-let* ((eldoc-info (cider-eldoc-info
                                   (cider--eldoc-remove-dot (cider-symbol-at-point)))))
            `("eldoc-info" ,eldoc-info
              "thing" ,(cider-symbol-at-point)
              "pos" 0)))))))