Function: comp--get-function-cstr
comp--get-function-cstr is a byte-compiled function defined in
comp.el.gz.
Signature
(comp--get-function-cstr FUNCTION)
Documentation
Given FUNCTION return the corresponding comp-constraint.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/comp.el.gz
(defun comp--get-function-cstr (function)
"Given FUNCTION return the corresponding `comp-constraint'."
(when (symbolp function)
(or (gethash function comp-primitive-func-cstr-h)
(when-let ((type (or (when-let ((f (comp--symbol-func-to-fun function)))
(comp-func-declared-type f))
(function-get function 'function-type))))
(comp-type-spec-to-cstr type)))))