Function: cider--locref-at-point-1
cider--locref-at-point-1 is a byte-compiled function defined in
cider-repl.el.
Signature
(cider--locref-at-point-1 REG-LIST)
Documentation
Workhorse for getting locref at point.
REG-LIST is an entry in cider-locref-regexp-alist.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-repl.el
(defun cider--locref-at-point-1 (reg-list)
"Workhorse for getting locref at point.
REG-LIST is an entry in `cider-locref-regexp-alist'."
(beginning-of-line)
(when (re-search-forward (nth 1 reg-list) (line-end-position) t)
(let ((ix-highlight (or (nth 2 reg-list) 0))
(ix-var (nth 3 reg-list))
(ix-file (nth 4 reg-list))
(ix-line (nth 5 reg-list)))
(list
:type (car reg-list)
:highlight (cons (match-beginning ix-highlight) (match-end ix-highlight))
:var (and ix-var
(replace-regexp-in-string "_" "-"
(match-string-no-properties ix-var)
nil t))
:file (and ix-file (match-string-no-properties ix-file))
:line (and ix-line (string-to-number (match-string-no-properties ix-line)))))))