Function: cider-ns-edit--libspec-ns

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

Signature

(cider-ns-edit--libspec-ns POS)

Documentation

Return the name of the namespace the libspec at POS requires.

That's the libspec itself when it's a bare symbol or string, or its first element for a vector or a list.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20261106.1225/cider-ns.el
(defun cider-ns-edit--libspec-ns (pos)
  "Return the name of the namespace the libspec at POS requires.
That's the libspec itself when it's a bare symbol or string, or its first
element for a vector or a list."
  (if (cider-ns-edit--seq-p pos)
      (when-let* ((first (car (cider-ns-edit--elements pos))))
        (cider-ns-edit--text first))
    (cider-ns-edit--text pos)))