Liking cljdoc? Tell your friends :D

shadow.build.compiler


*cljs-warnings-ref*clj

source

*current-resource*clj

source

analyzeclj

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

cache-affecting-optionsclj

source

compile-allclj

(compile-all {:keys [build-sources] :as state})
(compile-all {:keys [executor 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 
sourceraw docstring

compile-cljs-seqclj

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

compile-cljs-sourcesclj

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

compile-cljs-stringclj

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

copy-source-to-outputclj

(copy-source-to-output state sources)
source

default-compile-cljsclj

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

default-parse-nsclj

source

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)
source

do-compile-cljs-stringclj

(do-compile-cljs-string {:keys [resource-name cljc reader-features] :as init}
                        reduce-fn
                        cljs-source)
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
sourceraw docstring

generate-output-for-sourceclj

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

get-cache-file-for-rcclj

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

hijacked-parse-nsclj

(hijacked-parse-ns env form rc opts)
source

is-cache-blocked?clj

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

load-cached-cljs-resourceclj

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

load-coreclj

(load-core)
source

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)
sourceraw docstring

make-runtime-setupclj

(make-runtime-setup state)
source

maybe-closure-convertclj

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

maybe-compile-cljsclj

(maybe-compile-cljs {:keys [build-options] :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
sourceraw 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
sourceraw 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})
source

post-analyzeclj

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

post-analyze-nsclj

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

remove-dead-js-depsclj

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

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

shadow-emitcljmultimethod

source

SHADOW-TIMESTAMPclj

source

throw-js-errors-now!clj

(throw-js-errors-now! state)
source

use-extern-propertiesclj

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

warning-collectorclj

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

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

write-cached-cljs-resourceclj

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

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

× close