Liking cljdoc? Tell your friends :D

orchard.cljs.analysis

ClojureScript analysis functions.

ClojureScript analysis functions.
raw docstring

all-nsclj

(all-ns {namespaces :cljs.analyzer/namespaces})
source

core-macrosclj

(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.
sourceraw docstring

core-varsclj

(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.
sourceraw docstring

find-nsclj

(find-ns env ns)
source

find-symbol-metaclj

(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.
sourceraw docstring

importsclj

(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.
sourceraw docstring

macro-ns-aliasclj

(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.
sourceraw docstring

macro-ns-aliasesclj

(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.
sourceraw docstring

ns-aliasclj

(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.
sourceraw docstring

ns-aliasesclj

(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.
sourceraw docstring

ns-interns-from-envclj

(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.
sourceraw docstring

ns-metaclj

(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.
sourceraw docstring

ns-resolveclj

(ns-resolve env ns sym)

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.
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`.
sourceraw docstring

ns-varsclj

(ns-vars env ns)

Returns a list of the vars declared in the ns.

Returns a list of the vars declared in the ns.
sourceraw docstring

public-macrosclj

(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.
sourceraw docstring

public-varsclj

(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.
sourceraw docstring

referred-macrosclj

(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.
sourceraw docstring

referred-varsclj

(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.
sourceraw docstring

sanitize-nsclj

(sanitize-ns m)

Add :ns from :name if missing.

Add :ns from :name if missing.
sourceraw docstring

special-metaclj

(special-meta _ sym)

Given a special symbol, gets the analyzer metadata.

Given a special symbol, gets the analyzer metadata.
sourceraw docstring

var-metaclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close