ClojureScript analysis functions.
ClojureScript analysis functions.
(core-macros env ns)
Returns a list of cljs.core macros visible to the ns.
Returns a list of cljs.core macros visible to the ns.
(core-vars env ns)
Returns a list of cljs.core vars visible to the ns.
Returns a list of cljs.core vars visible to the ns.
(find-symbol-meta env sym)
(find-symbol-meta env ns sym)
Given a sym
, gets the analyzer metadata for that var.
Given a `sym`, gets the analyzer metadata for that var.
(imports env ns)
Returns a map of [import-name] to [ns-qualified-import-name] for all imports in the given namespace.
Returns a map of [import-name] to [ns-qualified-import-name] for all imports in the given namespace.
(macro-ns-alias env sym ns)
If sym is an alias to, or the name of, a macro namespace referred to in ns, returns the name of the macro namespace; else returns nil.
If sym is an alias to, or the name of, a macro namespace referred to in ns, returns the name of the macro namespace; else returns nil.
(macro-ns-aliases env ns)
Returns a map of [macro-ns-name-or-alias] to [macro-ns-name] for the given namespace.
Returns a map of [macro-ns-name-or-alias] to [macro-ns-name] for the given namespace.
(ns-alias env sym ns)
If sym is an alias to, or the name of, a namespace referred to in ns, returns the name of the namespace; else returns nil.
If sym is an alias to, or the name of, a namespace referred to in ns, returns the name of the namespace; else returns nil.
(ns-aliases env ns)
Returns a map of [ns-name-or-alias] to [ns-name] for the given namespace.
Returns a map of [ns-name-or-alias] to [ns-name] for the given namespace.
(ns-interns-from-env env ns)
Given a namespace return all the var analysis maps. Analogous to clojure.core/ns-interns but returns var analysis maps not vars.
Directly from cljs.analyzer.api.
Given a namespace return all the var analysis maps. Analogous to clojure.core/ns-interns but returns var analysis maps not vars. Directly from cljs.analyzer.api.
(ns-meta var)
Return meta for the var, we wrap it in order to support both JVM and self-host.
Return meta for the var, we wrap it in order to support both JVM and self-host.
(ns-resolve env ns sym)
Obtains info for a sym
that may refer to:
foo/bar
.Obtains info for a `sym` that may refer to: * a var within the same ns; * a var referred from another ns; or * a var that is alias-qualified e.g. `foo/bar`.
(ns-vars env ns)
Returns a list of the vars declared in the ns.
Returns a list of the vars declared in the ns.
(public-macros env ns)
Given a namespace return all the public var analysis maps. Analogous to clojure.core/ns-publics but returns var analysis maps not vars.
Inspired by the ns-publics in cljs.analyzer.api.
Given a namespace return all the public var analysis maps. Analogous to clojure.core/ns-publics but returns var analysis maps not vars. Inspired by the ns-publics in cljs.analyzer.api.
(public-vars env ns)
Returns a list of the public vars declared in the ns.
Returns a list of the public vars declared in the ns.
(referred-macros env ns)
Returns a map of [macro-name] to [ns-qualified-macro-name] for all referred macros in the given namespace.
Returns a map of [macro-name] to [ns-qualified-macro-name] for all referred macros in the given namespace.
(referred-vars env ns)
Returns a map of [var-name] to [ns-qualified-var-name] for all referred vars in the given namespace.
Returns a map of [var-name] to [ns-qualified-var-name] for all referred vars in the given namespace.
(sanitize-ns m)
Add :ns from :name if missing.
Add :ns from :name if missing.
(special-meta _ sym)
Given a special symbol, gets the analyzer metadata.
Given a special symbol, gets the analyzer metadata.
(var-meta var)
Return meta for the var, we wrap it in order to support both JVM and self-host.
Return meta for the var, we wrap it in order to support both JVM and self-host.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close