function | since v0.0-2496 | clojure.core/resolve | Edit |
(resolve env sym)
Given an analysis environment resolve a var. Analogous to clojure.core/resolve
(defn resolve
[env sym]
{:pre [(map? env) (symbol? sym)]}
(try
(binding [ana/*private-var-access-nowarn* true]
(ana/resolve-var env sym
(ana/confirm-var-exists-throw)))
(catch #?(:clj Exception :cljs :default) e
(ana/resolve-macro-var env sym))))