Function: cider-eldoc--local-info
cider-eldoc--local-info is a byte-compiled function defined in
cider-eldoc.el.
Signature
(cider-eldoc--local-info THING)
Documentation
Return a locally-computed eldoc plist for THING, without an nREPL round-trip.
Handles map-access keywords, Classname. constructors, and the cached last
symbol. Returns nil when a server lookup is needed.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-eldoc.el
(defun cider-eldoc--local-info (thing)
"Return a locally-computed eldoc plist for THING, without an nREPL round-trip.
Handles map-access keywords, `Classname.' constructors, and the cached last
symbol. Returns nil when a server lookup is needed."
(cond
;; handle keywords for map access
((string-prefix-p ":" thing)
(list "symbol" thing "type" "function"
"arglists" '(("map") ("map" "not-found"))))
;; handle Classname. by displaying the eldoc for new
((string-match-p "^[A-Z].+\\.$" thing)
(list "symbol" thing "type" "function"
"arglists" '(("args*"))))
;; reuse the cached lookup (see `cider-eldoc--build-info')
((equal thing (car cider-eldoc-last-symbol))
(cadr cider-eldoc-last-symbol))))