(add-checks-normal-def expr expected)Add runtime checks to a def with an initial value.
Add runtime checks to a def with an initial value.
(check-def {: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 {: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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |