The set of symbols that will suppress instrumentation when any are used in the calling position of a form. Useful for excluding problematic macro call sites from coverage metrics.
The set of symbols that will suppress instrumentation when any are used in the calling position of a form. Useful for excluding problematic macro call sites from coverage metrics.
Traverse the given form and wrap all its sub-forms in a function that evals the form and records that it was called.
Traverse the given form and wrap all its sub-forms in a function that evals the form and records that it was called.
(form-type form env)
Classifies the given form
Classifies the given form
(instrument f-var lib)
Instruments and evaluates a list of forms.
Instruments and evaluates a list of forms.
(no-instr line-hint form)
Do not change form at all.
Do not change form at all.
(nop line-hint form)
Instrument form with expressions that do nothing.
Instrument form with expressions that do nothing.
(propagate-line-numbers start form)
Assign :line metadata to all possible elements in a form, using start as default.
Assign :line metadata to all possible elements in a form, using start as default.
(wrap f-var line-hint form)
Main interface for wrapping expressions using f
.
Wrap will return a form that during macroexpansion calls f
on form
and
all sub-expressions of form
that can be meaningfully wrapped.
f
should take an expression and return one that evaluates in exactly the
same way, possibly with additional side effects.
Main interface for wrapping expressions using `f`. Wrap will return a form that during macroexpansion calls `f` on `form` and all sub-expressions of `form` that can be meaningfully wrapped. `f` should take an expression and return one that evaluates in exactly the same way, possibly with additional side effects.
(wrap-binding f line-hint [args & body :as form])
Wrap a let/loop binding
e.g. - a (+ a b)
(let or loop)
Wrap a let/loop binding e.g. - `a (+ a b)` (let or loop)
(wrap-deftype-defrecord-method f line [meth-name args & body :as method-form])
(wrap-overload f line-hint [args & body :as form])
Wrap a single function overload.
e.g. - ([a b] (+ a b)) or ([n] {:pre [(> n 0)]} (/ 1 n))
Wrap a single function overload. e.g. - ([a b] (+ a b)) or ([n] {:pre [(> n 0)]} (/ 1 n))
(wrapm f-sym line-hint form)
Helper macro for wrap.
Takes advantage of &env to track lexical scope while walking form
.
Helper macro for wrap. Takes advantage of &env to track lexical scope while walking `form`.
(wrapper f line)
Return a function that when called, wraps f through its argument.
Return a function that when called, wraps f through its argument.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close