Function: cider-ns-edit--destructuring-p

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

Signature

(cider-ns-edit--destructuring-p POS)

Documentation

Return non-nil if POS is in the vector of a :keys, :syms or :strs.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20261106.1225/cider-ns.el
(defun cider-ns-edit--destructuring-p (pos)
  "Return non-nil if POS is in the vector of a :keys, :syms or :strs."
  (when-let* ((open (nth 1 (save-excursion (syntax-ppss pos)))))
    (and (eq (char-after open) ?\[)
         (save-excursion
           (goto-char open)
           (skip-chars-backward " \t\n,")
           (looking-back "[:/]\\(?:keys\\|syms\\|strs\\)" (line-beginning-position))))))