(can-create-function? zloc)(can-create-test? zloc uri db)(can-demote-fn? zloc)(can-extract-to-def? zloc)(can-promote-fn? zloc)(can-thread-list? zloc)(can-thread? zloc)(can-unwind-thread? zloc)(change-coll zloc coll)Change collection to specified collection
Change collection to specified collection
(cond->if zloc)transforms a cond form into an equivalent if form
transforms a cond form into an equivalent if form
(create-function local-zloc uri db)(create-test zloc uri db {:keys [producer]})(cycle-coll zloc)Cycles collection between vector, list, map and set
Cycles collection between vector, list, map and set
(cycle-privacy zloc db)(demote-fn zloc)(expand-let zloc uri db)(expand-let zloc expand-to-top? uri db)Expand the scope of the next let up the tree.
Expand the scope of the next let up the tree.
(extract-function row-start
col-start
end-row
end-col
sel-start-zloc
sel-end-zloc
uri
fn-name
db)Extract selected expressions to a new function and replace with a function call. If no selection, extract the expression to the right. When selection start and end zlocs don't have the same parent or no expressions are found, return an error.
Extract selected expressions to a new function and replace with a function call. If no selection, extract the expression to the right. When selection start and end zlocs don't have the same parent or no expressions are found, return an error.
(extract-to-def zloc def-name)(find-function-form zloc)(find-let-form zloc uri db)Finds a let-form that would be valid to move zloc to
Finds a let-form that would be valid to move zloc to
(find-other-colls zloc)(find-public-function-to-create zloc uri db)(find-within zloc p?)(if->cond zloc)transforms an if form into an equivalent cond form
transforms an if form into an equivalent cond form
(introduce-let zloc binding-name)Adds a let around the current form.
Adds a let around the current form.
(move-to-let zloc uri db binding-name)Adds form and symbol to a let further up the tree
Adds form and symbol to a let further up the tree
(multi-arity-fn-definition? zloc)(near-cond? zloc)return true if nearby a 'cond', otherwise return false
return true if nearby a 'cond', otherwise return false
(near-if? zloc)return true if nearby an 'if', otherwise return false
return true if nearby an 'if', otherwise return false
(new-defn-zloc fn-name private? params body db)(prepend-preserving-comment existing-loc new-loc)Returns an edit that places new-loc before existing-loc, keeping any
comments or whitespace that preceed existing-loc close to it.
Returns an edit that places `new-loc` before `existing-loc`, keeping any comments or whitespace that preceed `existing-loc` close to it.
(promote-fn zloc uri db fn-name)(replace-in-bind-values first-bind p? replacement)(result zip-edits)(suppress-diagnostic zloc diagnostic-code)(thread-all zloc sym db)(thread-first zloc db)(thread-first-all zloc db)(thread-last zloc db)(thread-last-all zloc db)(unwind-all zloc)(unwind-thread zloc)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |