NodeCoercable
for nil
. (set #53 – thanks @jespera!)#?@...
. (see #48):whitespace
nodes but
:comma
. (see #44 - thanks @arrdem!)position
will throw exception if not used on rewrite-clj
custom zipper. (see #45)append-space
in favour of insert-space-right
prepend-space
in favour of insert-space-left
append-newline
in favour of insert-newline-right
prepend-newline
in favour of insert-newline-left
edn
and edn*
now take a :track-position?
option that activates a custom
zipper implementation allowing position
to be called on. (see #41, #45 -
thanks @eraserhd!)<U+2028>
. (see #43)integer-node
s. (see #37 - thanks @eraserhd!)insert-left*
and insert-right*
to facade.Development has branched off, using the 0.4.x
branch
fast-zip
and potemkin
dependencies. (see #26)x'
. (see #24)replace-children
for :uneval
nodes. (see #23)rewrite-clj.zip/postwalk
. (see #22)::ns/foo
. (see #21)rewrite-clj.zip/child-sexprs
to public API.\\
character. (see #17):fn
nodes (were printable-only?
but should actually create an s-sexpression).assert-sexpr-count
to not actually create the s-expressions.rewrite-clj.zip.indent
no longer usable.:meta
has to
contain exactly two non-whitespace forms).child-sexprs
function.assoc
on empty map. (see #16)leftmost
.next
and end?
.end?
.nil
on missing children). (see #5):uneval
element type (for #_form
elements).estimate-length
for multi-line strings.:1.4
and others threw an exception.:newline
to handle linebreak characters.rewrite-clj.zip/edn
wraps everything into [:forms ...]
node, but the initial location
is the node passed to it.rewrite-clj.zip.core
:
length
move-to-node
edit->>
, edit-node
subedit->
, subedit->>
, edit-children
leftmost?
, rightmost?
rewrite-clj.zip.edit
:
splice-or-remove
prefix
, suffix
(formerly rewrite-clj.zip.utils
)rewrite-clj.zip.edit/remove
now handles whitespace appropriately.rewrite-clj.zip.indent
:
indent
indent-children
replace
edit
insert-left
insert-right
remove
splice
rewrite-clj.zip.utils
:multi-line
)rewrite-clj.printer
:
->string
estimate-length
rewrite-clj.zip
:
of-string
, of-file
print
, print-root
->string
, ->root-string
append-space
, prepend-space
append-newline
, prepend-newline
right*
, left*
, ... (delegating to fast-zip.core/right
, ...):forms
rewrite-clj.parser
:
parse-all
parse-string-all
parse-file-all
rewrite-clj.zip.utils
(able to handle multi-line strings):
prefix
suffix
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close