Liking cljdoc? Tell your friends :D

lucid.legacy.analyzer.passes.collect


-collectclj

(-collect ast collect-fn)

-collect-callsitecljmultimethod


-collect-closed-oversclj

(-collect-closed-overs ast)

-collect-constcljmultimethod


-register-constantclj

(-register-constant form tag type)

collectclj

(collect {:keys [what top-level?] :as opts})

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.

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.
raw docstring

collect-closed-oversclj

(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.
raw docstring

collect-closed-overs*clj

(collect-closed-overs* {:keys [op] :as ast})

collect-fnsclj

(collect-fns what)

merge-collectsclj

(merge-collects ast)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close