Function: cider-protocols-with-method
cider-protocols-with-method is an autoloaded, interactive and
byte-compiled function defined in cider-xref-tree.el.
Signature
(cider-protocols-with-method &optional METHOD)
Documentation
Browse the protocols that declare a method named METHOD.
With no argument, uses the (unqualified) name at point. Only loaded Clojure-on-the-JVM code is visible.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-xref-tree.el
;;;###autoload
(defun cider-protocols-with-method (&optional method)
"Browse the protocols that declare a method named METHOD.
With no argument, uses the (unqualified) name at point. Only loaded
Clojure-on-the-JVM code is visible."
(interactive)
(cider-ensure-session)
(let* ((method (or method (cider-symbol-at-point)
(read-string "Protocols with method: ")))
;; drop a namespace qualifier (m/area -> area) but keep a bare `/'
(method (let ((parts (split-string method "/" t)))
(if (cdr parts) (car (last parts)) method))))
(cider-xref-tree--show-protocols
(cider-font-lock-as-clojure method)
(format "Protocols with a method named %s" method)
(cider-xref-tree--method-protocol-nodes method)
(format "No protocol declares a method named %s" method))))