 
 (defn var-info->json [ns-name sym & [file]]
   (jsonify (var-info ns-name sym
-                     file [:file :column :line :ns :name])))
+                     file [:macro :doc :file :line :column :name :ns])))
 
 (defn namespace-info->json [ns & [file-path]]
   (jsonify (namespace-info ns file-path)))

  (if-not (find-ns ns-sym)
    (create-ns ns-sym))

  (let [cenv-atom (comp-env)
        file (fm/find-file-for-ns-on-cp ns-sym file)]
    (if-not file (throw (Exception. (str "Cannot find cljs or cljc file for namespace " ns-sym))))

    (env/with-compiler-env cenv-atom
      ; first pass: ensure that dependencies are analyzed
      (if-not (ana-api/find-ns ns-sym)
        (ana/no-warn (ana-api/analyze-file file {:cache-analysis false})))
      (ana-api/remove-ns ns-sym)
      ; second pass: there might be warnings
      (ana-api/analyze-file file {:cache-analysis false})
      (ana-api/find-ns ns-sym))))

(defn ensure-ns-analyzed!
  [ns-name & [file]]


 (reset! cljs-env {})
 (namespace-info 'rksm.test)
)
