(confirm-bindings env names)
Given env, an analysis environment env, and names, a list of symbols, confirm
that all correspond to declared dynamic vars.
Source
(defn confirm-bindings
"Given env, an analysis environment env, and names, a list of symbols, confirm
that all correspond to declared dynamic vars."
[env names]
(doseq [name names]
(let [env (assoc env :ns (get-namespace *cljs-ns*))
ev (resolve-existing-var env name)]
(when (and ev (not (-> ev :dynamic)))
(warning :dynamic env {:ev ev :name (:name ev)})))))