Function: helpful--callees
helpful--callees is a byte-compiled function defined in helpful.el.
Signature
(helpful--callees FORM)
Documentation
Given source code FORM, return a list of all the functions called.
Source Code
;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
(defun helpful--callees (form)
"Given source code FORM, return a list of all the functions called."
(let* ((expanded-form (macroexpand-all form))
;; Find all the functions called after macro expansion.
(all-fns (helpful--callees-1 expanded-form))
;; Only consider the functions that were in the original code
;; before macro expansion.
(form-syms (-filter #'symbolp (-flatten form)))
(form-fns (--filter (memq it form-syms) all-fns)))
(-distinct form-fns)))