Full namespace name:
clojure.tools.analyzer.js OverviewAnalyzer for clojurescript code, extends tools.analyzer with JS specific passes/forms
Usage: (analyze form) (analyze form env) (analyze form env opts)
Returns an AST for the form. Binds tools.analyzer/{macroexpand-1,create-var,parse} to tools.analyzer.js/{macroexpand-1,create-var,parse} and analyzes the form. If provided, opts should be a map of options to analyze, currently the only valid options are :bindings and :passes-opts. If provided, :bindings should be a map of Var->value pairs that will be merged into the default bindings for tools.analyzer, useful to provide custom extension points. If provided, :passes-opts should be a map of pass-name-kw->pass-config-map pairs that can be used to configure the behaviour of each pass. E.g. (analyze form env {:bindings {#'ana/macroexpand-1 my-mexpand-1}}) Calls `run-passes` on the AST.Source
Usage: (analyze-ns ns)
Analyzes a whole namespace, returns a vector of the ASTs for all the top-level ASTs of that namespace.Source
Usage: (backup-env)
Caches the current namespaces state in a resource file, can be restored with (restore-env)Source
Usage: (cljs-env->env)
Converts the namespace map of the current cljs environment in a tools.analyzer.js namespace map and returns it.Source
Usage: (create-var sym {:keys [ns]})
Creates a var map for sym and returns it.Source
Set of passes that will be run by default on the AST by #'run-passesSource
Usage: (empty-env)
Returns an empty env mapSource
No usage documentation available
Extension to tools.analyzer/-parse for CLJS special formsSource
Usage: (restore-env)
Uses a cached env to populate the default namespace mapSource
Usage: (run-passes ast)
Function that will be invoked on the AST tree immediately after it has been constructed, by default set-ups and runs the default passes declared in #'default-passesSource
Usage: (setup-rt!)
Setups the basic runtime, loading cljs.core and initializing cljs.userSource
Set of the special forms for clojurescriptSource
Logo & site design by
Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4