Liking cljdoc? Tell your friends :D

cljfmt.format.zloc

Common utility functions for using rewrite-clj zippers.

Common utility functions for using rewrite-clj zippers.
raw docstring

comment?clj

(comment? zloc)

True if the node at this location is a comment.

True if the node at this location is a comment.
sourceraw docstring

element?clj

(element? zloc)

True if the node at this location represents a syntactically important token.

True if the node at this location represents a syntactically important
token.
sourceraw docstring

form-symbolclj

(form-symbol zloc)

Return a name-only symbol for the leftmost node from this location.

Return a name-only symbol for the leftmost node from this location.
sourceraw docstring

form-symbol-fullclj

(form-symbol-full zloc)

Return the symbol in the leftmost node from this location.

Return the symbol in the leftmost node from this location.
sourceraw docstring

multiline?clj

(multiline? zloc)

True if the form at this location spans more than one line.

True if the form at this location spans more than one line.
sourceraw docstring

reader-conditional?clj

(reader-conditional? zloc)

True if the node at this location is a reader conditional form.

True if the node at this location is a reader conditional form.
sourceraw docstring

reader-macro?clj

(reader-macro? zloc)

True if the node at this location is a reader macro expression.

True if the node at this location is a reader macro expression.
sourceraw docstring

root?clj

(root? zloc)

True if this location is the root node.

True if this location is the root node.
sourceraw docstring

skip-whitespaceclj

(skip-whitespace zloc)

Skip to the location of the next non-whitespace node.

Skip to the location of the next non-whitespace node.
sourceraw docstring

token-valueclj

(token-value zloc)

Return the s-expression form of the token at this location.

Return the s-expression form of the token at this location.
sourceraw docstring

token?clj

(token? zloc)

True if the node at this location is a token.

True if the node at this location is a token.
sourceraw docstring

top?clj

(top? zloc)

True if the node at this location has a parent node.

True if the node at this location has a parent node.
sourceraw docstring

whitespace?clj

(whitespace? zloc)

True if the node at this location is whitespace and not a line break character.

True if the node at this location is whitespace and _not_ a line break
character.
sourceraw docstring

zlinebreak?clj

True if the node contains a line break.

True if the node contains a line break.
sourceraw docstring

zprnclj

(zprn zloc tag)

Print a zipper location for debugging purposes. Returns the location unchanged.

Print a zipper location for debugging purposes. Returns the
location unchanged.
sourceraw docstring

zwhitespace?clj

True if the node is a whitespace node.

True if the node is a whitespace node.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close