Function: cider--xref-extract-file

cider--xref-extract-file is a byte-compiled function defined in cider-xref-backend.el.

Signature

(cider--xref-extract-file DICT)

Documentation

Extracts the best possible file path from DICT.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-xref-backend.el
(defun cider--xref-extract-file (dict)
  "Extracts the best possible file path from DICT."
  (or (nrepl-dict-get dict "file-url") ;; This is the primary choice, it has a protocol and indicates an absolute path
      ;; fall back in case it was absent or we're running an older cider-nrepl:
      (nrepl-dict-get dict "file")))