cljs.compiler.api/emit

functionsince v0.0-3255Edit
(emit ast)
(emit state ast)

Source docstring:
Given an AST node generated by the analyzer emit JavaScript as a string.
Source code @ clojurescript:src/main/clojure/cljs/compiler/api.clj
(defn emit
  ([ast]
   (emit (or (ana-api/current-state) (ana-api/empty-state)) ast))
  ([state ast]
   (ana-api/with-state state
     (with-out-str
       (comp/emit ast)))))