Liking cljdoc? Tell your friends :D

cljs.compiler


*inputs*clj


*lexical-renames*clj


*recompiled*clj


*source-map-data*clj


*source-map-data-gen-col*clj


all-distinct?clj

(all-distinct? xs)

base-typesclj


cached-coreclj

(cached-core ns ext opts)

checking-types?clj

(checking-types?)

cljs-files-inclj

(cljs-files-in dir)

Return a sequence of all .cljs and .cljc files in the given directory.

Return a sequence of all .cljs and .cljc files in the given directory.
raw docstring

cljs-reserved-file-namesclj


compile-fileclj

(compile-file src)
(compile-file src dest)
(compile-file src dest opts)

Compiles src to a file of the same name, but with a .js extension, in the src file's directory.

With dest argument, write file to provided location. If the dest argument is a file outside the source tree, missing parent directories will be created. The src file will only be compiled if the dest file has an older modification time.

Both src and dest may be either a String or a File.

Returns a map containing {:ns .. :provides .. :requires .. :file ..}. If the file was not compiled returns only {:file ...}

Compiles src to a file of the same name, but with a .js extension,
in the src file's directory.

With dest argument, write file to provided location. If the dest
argument is a file outside the source tree, missing parent
directories will be created. The src file will only be compiled if
the dest file has an older modification time.

Both src and dest may be either a String or a File.

Returns a map containing {:ns .. :provides .. :requires .. :file ..}.
If the file was not compiled returns only {:file ...}
raw docstring

compile-file*clj

(compile-file* src dest)
(compile-file* src dest opts)

compile-rootclj

(compile-root src-dir)
(compile-root src-dir target-dir)
(compile-root src-dir target-dir opts)

Looks recursively in src-dir for .cljs files and compiles them to .js files. If target-dir is provided, output will go into this directory mirroring the source directory structure. Returns a list of maps containing information about each file which was compiled in dependency order.

Looks recursively in src-dir for .cljs files and compiles them to
.js files. If target-dir is provided, output will go into this
directory mirroring the source directory structure. Returns a list
of maps containing information about each file which was compiled
in dependency order.
raw docstring

compiled-by-stringclj

(compiled-by-string)
(compiled-by-string opts)

distinct-constants?clj

(distinct-constants? items)

distinct-keys?clj

(distinct-keys? keys)

emitclj

(emit ast)

emit*cljmultimethod


emit-apply-toclj

(emit-apply-to {:keys [name params env]})

emit-arguments-to-arrayclj

(emit-arguments-to-array startslice)

Emit code that copies function arguments into an array starting at an index. Returns name of var holding the array.

Emit code that copies function arguments into an array starting at an index.
Returns name of var holding the array.
raw docstring

emit-cached-coreclj

(emit-cached-core src dest cached opts)

emit-commentclj

(emit-comment doc jsdoc)
(emit-comment env doc jsdoc)

Emit a nicely formatted comment string.

Emit a nicely formatted comment string.
raw docstring

emit-constantclj

(emit-constant v)

emit-constant*cljmultimethod


emit-constant-no-metaclj

(emit-constant-no-meta x)

emit-constants-comma-sepclj

(emit-constants-comma-sep cs)

emit-constants-tableclj

(emit-constants-table table)

emit-constants-table-to-fileclj

(emit-constants-table-to-file table dest)

emit-dotclj

(emit-dot {:keys [target field method args env]})

emit-externsclj

(emit-externs externs)
(emit-externs prefix externs top-level known-externs)

emit-fn-methodclj

(emit-fn-method {expr :body :keys [type name params env recurs]})

emit-fn-paramsclj

(emit-fn-params params)

emit-global-exportclj

(emit-global-export ns-name global-exports lib)

emit-inferred-externs-to-fileclj

(emit-inferred-externs-to-file externs dest)

emit-js-arrayclj

(emit-js-array items comma-sep)

emit-js-objectclj

(emit-js-object items emit-js-object-val)

emit-letclj

(emit-let {expr :body :keys [bindings env]} is-loop)

emit-listclj

(emit-list items comma-sep)

emit-mapclj

(emit-map keys vals comma-sep distinct-keys?)

emit-record-valueclj

(emit-record-value ns name items)

emit-setclj

(emit-set items comma-sep distinct-constants?)

emit-sourceclj

(emit-source src dest ext opts)

emit-source-mapclj

(emit-source-map src dest sm-data opts)

emit-strclj

(emit-str expr)

emit-varclj

(emit-var {:keys [info env form] :as ast})

emit-variadic-fn-methodclj

(emit-variadic-fn-method {expr :body
                          max-fixed-arity :fixed-arity
                          variadic :variadic?
                          :keys [type name params env recurs]
                          :as f})

emit-vectorclj

(emit-vector items comma-sep)

emit-with-metaclj

(emit-with-meta expr meta)

emit-wrapcljmacro

(emit-wrap env & body)

emitlnclj

(emitln)
(emitln a)
(emitln a b)
(emitln a b c)
(emitln a b c d)
(emitln a b c d e)
(emitln a b c d e & xs)

emitsclj

(emits)
(emits a)
(emits a b)
(emits a b c)
(emits a b c d)
(emits a b c d e)
(emits a b c d e & xs)

emits-keywordclj

(emits-keyword kw)

emits-symbolclj

(emits-symbol sym)

falsey-constant?clj

(falsey-constant? expr)

find-ns-starts-withclj

(find-ns-starts-with needle)

find-root-sourcesclj

(find-root-sources src-dir)

find-sourceclj

(find-source file)

fn-self-nameclj

(fn-self-name {:keys [name info] :as name-var})

get-defineclj

(get-define mname jsdoc)

get-first-ns-segmentclj

(get-first-ns-segment ns)

Gets the part up to the first . of a namespace. Returns the empty string for nil. Returns the entire string if no . in namespace

Gets the part up to the first `.` of a namespace.
Returns the empty string for nil.
Returns the entire string if no `.` in namespace
raw docstring

hash-scopeclj

(hash-scope s)

js-reservedclj


load-libsclj

(load-libs libs seen reloads deps ns-name)

macro-ns?clj

(macro-ns? ns ext opts)

mapped-typesclj


mungeclj

(munge s)
(munge s reserved)

munge-param-returnclj

(munge-param-return env line)

munge-reservedclj

(munge-reserved reserved)

protocol-prefixclj

(protocol-prefix psym)

rename-to-jsclj

(rename-to-js file-str)

Change the file extension from .cljs to .js. Takes a File or a String. Always returns a String.

Change the file extension from .cljs to .js. Takes a File or a
String. Always returns a String.
raw docstring

requires-compilation?clj

(requires-compilation? src dest)
(requires-compilation? src dest opts)

Return true if the src file requires compilation.

Return true if the src file requires compilation.
raw docstring

resolve-typeclj

(resolve-type env t)

resolve-typesclj

(resolve-types env ts)

safe-test?clj

(safe-test? env e)

shadow-depthclj

(shadow-depth s)

truthy-constant?clj

(truthy-constant? expr)

url-pathclj

(url-path f)

valid-define-value?clj

(valid-define-value? x)

with-core-cljsclj

(with-core-cljs)
(with-core-cljs opts)
(with-core-cljs opts body)

Ensure that core.cljs has been loaded.

Ensure that core.cljs has been loaded.
raw docstring

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

× close