Function: cider-ns-edit--alias-candidates

cider-ns-edit--alias-candidates is a byte-compiled function defined in cider-ns.el.

Signature

(cider-ns-edit--alias-candidates ALIAS)

Documentation

Return the namespaces ALIAS could stand for.

They come as dicts like the ones of cider-sync-request:resolve-alias. When the REPL can't tell, they're the ones cider-ns-magic-require-aliases has for ALIAS.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20261106.1225/cider-ns.el
(defun cider-ns-edit--alias-candidates (alias)
  "Return the namespaces ALIAS could stand for.
They come as dicts like the ones of `cider-sync-request:resolve-alias'.
When the REPL can't tell, they're the ones `cider-ns-magic-require-aliases'
has for ALIAS."
  (let* ((platform (cider-ns-edit--platform))
         (preferred (cider-ns-edit--magic-require-namespaces alias platform)))
    (if (and (cider-connected-p) (cider-nrepl-op-supported-p "cider/resolve-alias"))
        (cider-sync-request:resolve-alias alias (cider-current-ns) platform preferred)
      (mapcar (lambda (ns) (nrepl-dict "ns" ns "source" "preferred")) preferred))))