Function: cider-xref--source-references

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

Signature

(cider-xref--source-references TARGET-NS NAME)

Documentation

Return xref match items for references to TARGET-NS/NAME across the project.

When TARGET-NS is nil the search degrades to matching the bare NAME everywhere, which is more approximate but works without a connected REPL.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-xref-source.el
(defun cider-xref--source-references (target-ns name)
  "Return xref match items for references to TARGET-NS/NAME across the project.
When TARGET-NS is nil the search degrades to matching the bare NAME everywhere,
which is more approximate but works without a connected REPL."
  (when-let* ((files (cider-xref--project-source-files))
              (candidates (cider-xref--candidate-files name files)))
    (seq-mapcat (lambda (file)
                  (cider-xref--references-in-file file target-ns name))
                candidates)))