Function: cider-xref--resolve-var

cider-xref--resolve-var is a byte-compiled function defined in cider-xref-source.el.

Signature

(cider-xref--resolve-var VAR)

Documentation

Resolve VAR to a cons (NS . NAME) via the nREPL info op, or nil.

Resolution collapses aliases and refers down to the canonical namespace and name, so a single round-trip turns the symbol at point into something the source search can look for everywhere.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-xref-source.el
(defun cider-xref--resolve-var (var)
  "Resolve VAR to a cons (NS . NAME) via the nREPL `info' op, or nil.
Resolution collapses aliases and refers down to the canonical namespace and
name, so a single round-trip turns the symbol at point into something the source
search can look for everywhere."
  (when-let* ((info (cider-var-info var))
              (ns (nrepl-dict-get info "ns"))
              (name (nrepl-dict-get info "name")))
    (cons ns name)))