(-collect ast collect-fn)(-collect-closed-overs ast)(-register-constant form tag type)(collect {:keys [what top-level?] :as opts})Takes a map with:
Returns a function that does the takes an AST and returns an AST with the collected info.
Takes a map with: * :what set of keywords describing what to collect, some of: ** :constants constant expressions ** :closed-overs closed over local bindings ** :callsites keyword and protocol callsites * :where set of :op nodes where to attach collected info * :top-level? if true attach collected info to the top-level node Returns a function that does the takes an AST and returns an AST with the collected info.
(collect-closed-overs ast opts)Takes an AST and an opts map that takes the same options as collect, but only collects closed-overs on the AST.
Takes an AST and an opts map that takes the same options as collect, but only collects closed-overs on the AST.
(collect-closed-overs* {:keys [op] :as ast})(collect-fns what)(merge-collects ast)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 |