Function: cider-xref--name-alts
cider-xref--name-alts is a byte-compiled function defined in
cider-xref-source.el.
Signature
(cider-xref--name-alts TARGET-NS NAME CONTEXT)
Documentation
Return the regexp alternatives matching TARGET-NS/NAME as licensed by CONTEXT.
Each alt is a regexp-quoted qualified, aliased, or bare form of NAME, per the
file's (ns ...) form; CONTEXT is a plist as returned by cider-xref--ns-context.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-xref-source.el
(defun cider-xref--name-alts (target-ns name context)
"Return the regexp alternatives matching TARGET-NS/NAME as licensed by CONTEXT.
Each alt is a `regexp-quote'd qualified, aliased, or bare form of NAME, per the
file's `(ns ...)' form; CONTEXT is a plist as returned by `cider-xref--ns-context'."
(let* ((qname (regexp-quote name))
;; The bare name is an alt only when this file licenses unqualified use.
(alts (when (plist-get context :referred) (list qname))))
(when target-ns
(push (concat (regexp-quote target-ns) "/" qname) alts))
(when-let* ((alias (plist-get context :alias)))
(push (concat (regexp-quote alias) "/" qname) alts))
alts))