Liking cljdoc? Tell your friends :D

shadow.build.compiler


*cljs-warnings-ref*clj


*current-resource*clj


analyzeclj

(analyze state compile-state form)
(analyze state {:keys [ns resource-name] :as compile-state} form repl-context?)

cache-affecting-optionsclj


compile-allclj

(compile-all {:keys [build-sources] :as state})
(compile-all {:keys [build-sources last-progress-ref] :as state} source-ids)

compile a list of sources by id, requires that the ids are in dependency order requires that ALL of the dependencies NOT listed are already compiled eg. you cannot just compile clojure.string as it requires other files to be compiled first

compile a list of sources by id,
requires that the ids are in dependency order
requires that ALL of the dependencies NOT listed are already compiled
eg. you cannot just compile clojure.string as it requires other files to be compiled first 
raw docstring

compile-cljs-seqclj

(compile-cljs-seq state compile-state cljs-forms)

compile-cljs-sourcesclj

(compile-cljs-sources {:keys [executor] :as state} sources non-cljs-provides)

compile-cljs-stringclj

(compile-cljs-string state compile-state cljs-source)

copy-source-to-outputclj

(copy-source-to-output state sources)

default-compile-cljsclj

(default-compile-cljs {:keys [last-progress-ref] :as state}
                      {:keys [ns macros-ns] :as compile-state}
                      form)

default-parse-nsclj


do-compile-cljs-resourceclj

(do-compile-cljs-resource
  {:keys [compiler-options] :as state}
  {:keys [resource-id resource-name url file output-name] :as rc}
  source)

do-compile-cljs-stringclj

(do-compile-cljs-string {:keys [resource-name cljc reader-features] :as init}
                        reduce-fn
                        cljs-source)

ensure-cache-invalidation-on-resolve-changesclj

(ensure-cache-invalidation-on-resolve-changes state resource-id)

populates :cache-key of the resource with the resolved symbols of its deps to ensure recompilation when their names change

populates :cache-key of the resource with the resolved symbols of its deps
to ensure recompilation when their names change
raw docstring

generate-output-for-sourceclj

(generate-output-for-source state {:keys [resource-id type] :as src})

get-cache-file-for-rcclj

(get-cache-file-for-rc state {:keys [resource-name] :as rc})

hijacked-parse-nsclj

(hijacked-parse-ns env form rc opts)

is-cache-blocked?clj

(is-cache-blocked? state {:keys [ns requires macro-requires] :as rc})

load-cached-cljs-resourceclj

(load-cached-cljs-resource {:keys [build-options] :as state}
                           {:keys [ns output-name resource-id resource-name]
                            :as rc})

load-coreclj

(load-core)

make-cache-key-mapclj

(make-cache-key-map state rc)

produces a map of {resource-id cache-key} for caching to identify whether a cache is safe to use (if any cache-keys do not match if is safer to recompile)

produces a map of {resource-id cache-key} for caching to identify
whether a cache is safe to use (if any cache-keys do not match if is safer to recompile)
raw docstring

make-runtime-setupclj

(make-runtime-setup state)

maybe-closure-convertclj

(maybe-closure-convert {:keys [output] :as state} npm convert-fn)

maybe-compile-cljsclj

(maybe-compile-cljs {:keys [build-options previously-compiled] :as state}
                    {:keys [resource-id resource-name from-jar file url]
                     :as rc})

take current state and cljs resource to compile make sure you are in with-compiler-env

take current state and cljs resource to compile
make sure you are in with-compiler-env
raw docstring

par-compile-cljs-sourcesclj

(par-compile-cljs-sources {:keys [executor] :as state}
                          sources
                          non-cljs-provides)

compile files in parallel, files MUST be in dependency order and ALL dependencies must be present this cannot do a partial incremental compile

compile files in parallel, files MUST be in dependency order and ALL dependencies must be present
this cannot do a partial incremental compile
raw docstring

par-compile-oneclj

(par-compile-one {:keys [last-progress-ref] :as state}
                 ready-ref
                 errors-ref
                 {:keys [resource-id type requires provides] :as src})

post-analyzeclj

(post-analyze {:keys [op] :as ast} build-state)

post-analyze-nsclj

(post-analyze-ns {:keys [name] :as ast} build-state)

remove-dead-js-depsclj

(remove-dead-js-deps {:keys [build-sources dead-js-deps] :as state})

seq-compile-cljs-sourcesclj

(seq-compile-cljs-sources state sources)

compiles with just the main thread, can do partial compiles assuming deps are compiled

compiles with just the main thread, can do partial compiles assuming deps are compiled
raw docstring

shadow-emitcljmultimethod


SHADOW-TIMESTAMPclj


throw-js-errors-now!clj

(throw-js-errors-now! state)

use-extern-propertiesclj

(use-extern-properties {:keys [js-properties] :as state})

warning-collectorclj

(warning-collector build-env warnings warning-type env extra)

with-warningsclj/smacro

(with-warnings build-env & body)

given a body that produces a compilation result, collect all warnings and assoc into :warnings

given a body that produces a compilation result, collect all warnings and assoc into :warnings
raw docstring

write-cached-cljs-resourceclj

(write-cached-cljs-resource state
                            {:keys [ns requires resource-id resource-name]
                             :as rc}
                            {:keys [warnings] :as output})

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

× close