cljs.build.api/cljs-dependents-for-macro-namespaces
function | since v0.0-2496 | Edit |
(cljs-dependents-for-macro-namespaces namespaces)
(cljs-dependents-for-macro-namespaces state namespaces)
Source docstring:
Takes a list of Clojure (.clj) namespaces that define macros and
returns a list ClojureScript (.cljs) namespaces that depend on those macro
namespaces.
For example where example.macros is defined in the clojure file
"example/macros.clj" and both 'example.core and 'example.util are
ClojureScript namespaces that require and use the macros from
'example.macros :
(cljs-dependents-for-macro-namespaces 'example.macros) ->
('example.core 'example.util)
(defn cljs-dependents-for-macro-namespaces
([namespaces]
(closure/cljs-dependents-for-macro-namespaces
(or (ana-api/current-state) (ana-api/empty-state)) namespaces))
([state namespaces]
(closure/cljs-dependents-for-macro-namespaces state namespaces)))