cljs.analyzer.api/with-warning-handlers
(with-warning-handlers handlers & body)
Source docstring:
Helper macro for custom handling of emitted warnings. Handlers should be
a vector of functions. The signature of these functions is
[warn-type env warn-info]. warn-type is a keyword describing the warning,
env is the analysis environment, and warn-info is a map of extra useful
information for a particular warning type.
(defmacro with-warning-handlers
[handlers & body]
`(ana/with-warning-handlers ~handlers
~@body))