Function: majutsu-template--method-dispatch-candidates
majutsu-template--method-dispatch-candidates is a natively compiled
function defined in majutsu-template.el.
Signature
(majutsu-template--method-dispatch-candidates RECEIVER-TYPE)
Documentation
Return ordered (SEMANTIC-TYPE . DISPATCH-KIND) candidates for RECEIVER-TYPE.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-template.el
(defun majutsu-template--method-dispatch-candidates (receiver-type)
"Return ordered `(SEMANTIC-TYPE . DISPATCH-KIND)' candidates for RECEIVER-TYPE."
(setq receiver-type (majutsu-template--type-ref-normalize receiver-type))
(cl-delete-duplicates
(pcase receiver-type
(`(:list ,_)
(list (cons receiver-type
(majutsu-template--type-ref-dispatch-kind receiver-type))
(cons receiver-type 'List)))
(`(:option ,inner)
(append (list (cons receiver-type
(majutsu-template--type-ref-dispatch-kind receiver-type))
(cons receiver-type 'Option))
(majutsu-template--method-dispatch-candidates inner)))
(`(:lambda . ,_)
(list (cons receiver-type 'Lambda)))
(_
(list (cons receiver-type
(majutsu-template--type-ref-dispatch-kind receiver-type)))))
:test #'equal))