(add-checks-normal-def check-fn expr expected)
Add runtime checks to a def with an initial value.
Add runtime checks to a def with an initial value.
(check-def check-fn {:keys [var init env] :as expr} expected)
Check a def. If it is a declare or a defmacro, don't try and check it.
Check a def. If it is a declare or a defmacro, don't try and check it.
(check-defmacro-or-declare expr expected)
To check a defmacro or declare, just assign it the most general Var type and ignore the body.
To check a defmacro or declare, just assign it the most general Var type and ignore the body.
(check-normal-def check-fn {:keys [meta init env] :as expr} & [expected])
Checks a def that isn't a macro definition.
Checks a def that isn't a macro definition.
(defmacro-or-declare? {:keys [var] :as expr})
Returns true if this :def AST was originally a defmacro or declare.
Returns true if this :def AST was originally a defmacro or declare.
(init-provided? expr)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close