orchard.meta
Utility functions for extracting and manipulating metadata.
macroexpand-all
(macroexpand-all form & [original-key])
Like clojure.walk/macroexpand-all, but preserves and macroexpands
metadata. Also store the original form (unexpanded and stripped of
metadata) in the metadata of the expanded form under original-key.
resolve-aliases
(resolve-aliases ns)
resolve-var
(resolve-var ns sym)
var-code
(var-code v)
Find the source of the var `v`.
Return a map of the var's metadata (:file, :line, :column, etc.) as well as:
- :form : The form, as read by `clojure.core/read`, and
- :code : The source code of the form
Return nil if the source of the var cannot be found.
var-doc
(var-doc v)
(var-doc n v)
Return special form or var's docstring, optionally limiting the number of
sentences returned to n.
var-name
(var-name v)
Return special form or var's namespace-qualified name as string.