analyze
functionv1.7
cljs.js/analyze
(analyze [state source cb] [state source name cb] [state source name opts cb])Analyze ClojureScript source. The compiler state will be populated with
the results of analyzes. The parameters:
state (atom)
the compiler state
source (string)
the ClojureScript source
name (symbol)
optional, the name of the source
opts (map)
compilation options.
:eval - the eval function to invoke, see *eval-fn*
:load - library resolution function, see *load-fn*
cb (function)
callback, will be invoked with a map. If successful the map will contain
a key :value, the actual value is not meaningful. If unsuccessful the
map will contain a key :error with an ex-info instance describing the cause
of failure.
Examples
No examples yet. Be the first to add one!