Liking cljdoc? Tell your friends :D

clojure-lsp.refactor.transform


can-create-function?clj

(can-create-function? zloc)
source

can-create-test?clj

(can-create-test? zloc uri db)
source

can-demote-fn?clj

(can-demote-fn? zloc)
source

can-extract-to-def?clj

(can-extract-to-def? zloc)
source

can-promote-fn?clj

(can-promote-fn? zloc)
source

can-thread-list?clj

(can-thread-list? zloc)
source

can-thread?clj

(can-thread? zloc)
source

can-unwind-thread?clj

(can-unwind-thread? zloc)
source

change-collclj

(change-coll zloc coll)

Change collection to specified collection

Change collection to specified collection
sourceraw docstring

common-var-definition-symbolsclj

source

cond->ifclj

(cond->if zloc)

transforms a cond form into an equivalent if form

transforms a cond form into an equivalent if form
sourceraw docstring

create-functionclj

(create-function local-zloc uri db)
source

create-testclj

(create-test zloc uri db {:keys [producer]})
source

cycle-collclj

(cycle-coll zloc)

Cycles collection between vector, list, map and set

Cycles collection between vector, list, map and set
sourceraw docstring

cycle-privacyclj

(cycle-privacy zloc db)
source

demote-fnclj

(demote-fn zloc)
source

expand-letclj

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

extract-functionclj

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

extract-to-defclj

(extract-to-def zloc def-name)
source

find-function-formclj

(find-function-form zloc)
source

find-let-formclj

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

find-other-collsclj

(find-other-colls zloc)
source

find-public-function-to-createclj

(find-public-function-to-create zloc uri db)
source

find-withinclj

(find-within zloc p?)
source

if->condclj

(if->cond zloc)

transforms an if form into an equivalent cond form

transforms an if form into an equivalent cond form
sourceraw docstring

introduce-letclj

(introduce-let zloc binding-name)

Adds a let around the current form.

Adds a let around the current form.
sourceraw docstring

move-to-letclj

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

multi-arity-fn-definition?clj

(multi-arity-fn-definition? zloc)
source

near-cond?clj

(near-cond? zloc)

return true if nearby a 'cond', otherwise return false

return true if nearby a 'cond', otherwise return false
sourceraw docstring

near-if?clj

(near-if? zloc)

return true if nearby an 'if', otherwise return false

return true if nearby an 'if', otherwise return false
sourceraw docstring

new-defn-zlocclj

(new-defn-zloc fn-name private? params body db)
source

prepend-preserving-commentclj

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

promote-fnclj

(promote-fn zloc uri db fn-name)
source

replace-in-bind-valuesclj

(replace-in-bind-values first-bind p? replacement)
source

resultclj

(result zip-edits)
source

suppress-diagnosticclj

(suppress-diagnostic zloc diagnostic-code)
source

thread-allclj

(thread-all zloc sym db)
source

thread-firstclj

(thread-first zloc db)
source

thread-first-allclj

(thread-first-all zloc db)
source

thread-first-symbolsclj

source

thread-invalid-symbolsclj

source

thread-lastclj

(thread-last zloc db)
source

thread-last-allclj

(thread-last-all zloc db)
source

thread-last-symbolsclj

source

thread-symbolsclj

source

unwind-allclj

(unwind-all zloc)
source

unwind-threadclj

(unwind-thread zloc)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close