Function: cider-browse-ns--var-node

cider-browse-ns--var-node is a byte-compiled function defined in cider-browse-ns.el.

Signature

(cider-browse-ns--var-node KEY ITEMS)

Documentation

Build a cider-tree-view node for item KEY in nrepl-dict ITEMS.

The node carries a (TYPE VALUE) payload read back by cider-browse-ns--thing-at-point so RET/d/s can act on it. When a namespace is being browsed KEY is one of its vars; otherwise (the all-namespaces listing) KEY is itself a namespace.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-browse-ns.el
(defun cider-browse-ns--var-node (key items)
  "Build a `cider-tree-view' node for item KEY in nrepl-dict ITEMS.
The node carries a (TYPE VALUE) payload read back by
`cider-browse-ns--thing-at-point' so RET/`d'/`s' can act on it.  When a
namespace is being browsed KEY is one of its vars; otherwise (the all-namespaces
listing) KEY is itself a namespace."
  (let ((value (if cider-browse-ns-current-ns
                   (list 'var (format "%s/%s" cider-browse-ns-current-ns key))
                 (list 'ns key))))
    (cider-tree-view-node-create
     :label (cider-browse-ns--node-label key items)
     :value value
     :on-visit #'cider-browse-ns-operate-at-point)))