Function: cider-resolve-ns-symbols

cider-resolve-ns-symbols is a byte-compiled function defined in cider-resolve.el.

Signature

(cider-resolve-ns-symbols NS)

Documentation

Return a plist of all valid symbols in NS.

Each entry's value is the metadata of the var that the symbol refers to. NS can be the namespace name, or a dict of the namespace itself.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-resolve.el
(defun cider-resolve-ns-symbols (ns)
  "Return a plist of all valid symbols in NS.
Each entry's value is the metadata of the var that the symbol refers to.
NS can be the namespace name, or a dict of the namespace itself."
  (let ((cache (cider-resolve--ns-cache)))
    (when-let* ((dict (if (stringp ns)
                          (nrepl-dict-get cache ns)
                        ns)))
      (nrepl-dbind-response dict (interns _refers aliases)
        (append (cdr interns)
                (nrepl-dict-flat-map (lambda (alias namespace)
                                       (nrepl-dict-flat-map (lambda (sym meta)
                                                              (list (concat alias "/" sym) meta))
                                                            (nrepl-dict-get-in cache (list namespace "interns"))))
                                     aliases))))))