Liking cljdoc? Tell your friends :D

refactor-nrepl.ns.ns-parser

Extracts a list of imports or libspecs from an ns form. A libspec looks like this:

{:ns my-ns :as my-alias :refer [referred symbols here] ; or :all :rename {:rename :spec} :only [only these symbols]

;; rest are cljs specific :refer-macros [referred macros here] :require-macros true}

Extracts a list of imports or libspecs from an ns form.  A libspec
looks like this:

{:ns my-ns
 :as my-alias
 :refer [referred symbols here] ; or :all
 :rename {:rename :spec}
 :only [only these symbols]

 ;; rest are cljs specific
 :refer-macros [referred macros here]
 :require-macros true}
raw docstring

aliasesclj

(aliases libspecs)

Return a map of namespace aliases given a seq of libspecs.

e.g {str clojure.string}

Return a map of namespace aliases given a seq of libspecs.

e.g {str clojure.string}
sourceraw docstring

get-importsclj

(get-imports ns-form)
source

get-libspecsclj

(get-libspecs ns-form)
source

get-libspecs-from-fileclj

(get-libspecs-from-file f)
(get-libspecs-from-file dialect f)

Return all the libspecs in a file.

This is the concatenation of all the libspecs found in the use, use-macros, require and require-macros forms.

Note that no post-processing is done so there might be duplicates or libspecs which could have been combined or eliminated as unused.

Dialect is either :clj or :cljs, the default is :clj.

Return all the libspecs in a file.

This is the concatenation of all the libspecs found in the use,
use-macros, require and require-macros forms.

Note that no post-processing is done so there might be duplicates or
libspecs which could have been combined or eliminated as unused.

Dialect is either :clj or :cljs, the default is :clj.
sourceraw docstring

get-required-macrosclj

(get-required-macros ns-form)
source

parse-nsclj

(parse-ns path-or-file)
source

with-libspecs-fromcljmacro

(with-libspecs-from ns-form key & body)

Bind the symbol libspecs to the libspecs extracted from the key in ns-form and execute body.

Bind the symbol libspecs to the libspecs extracted from the key in
ns-form and execute body.
sourceraw docstring

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

× close