             [cljs.core.async :as async]
             [cljs.js :as cljs]
             [shadow.xhr :as xhr]
+            [shadow.js]
             [cognitect.transit :as transit]
             [cljs.env :as env]))
 


(defn load-analyzer-data [ns]
  {:pre [(symbol? ns)]}
  (let [{:keys [source-name] :as ns-info}
        (get-ns-info ns)

        ;; FIXME: full name should in info
        req
        (transit-load (str asset-path "/ana/" source-name ".ana.transit.json"))]

    (go (when-some [x (<! req)]
          (js/console.log "analyzer" ns ns-info x)
          x))))

(defn load-macro-js [ns]
  {:pre [(symbol? ns)]}

  (xhr/chan :GET path nil {:body-only true
                           :transform identity}))

(defonce empty-result-helper
  (doto (async/chan)
    (async/close!)))

