Liking cljdoc? Tell your friends :D

rewrite-clj.node.protocols


assert-sexpr-countcljs

(assert-sexpr-count nodes c)
source

assert-single-sexprcljs

(assert-single-sexpr nodes)
source

child-sexprscljs

(child-sexprs node)

Get all child s-expressions for the given node.

Get all child s-expressions for the given node.
sourceraw docstring

concat-stringscljs

(concat-strings nodes)

Convert nodes to strings and concatenate them.

Convert nodes to strings and concatenate them.
sourceraw docstring

InnerNodecljsprotocol

Protocol for non-leaf EDN/Clojure nodes.

Protocol for non-leaf EDN/Clojure nodes.

childrencljs

(children _)

Get child nodes.

Get child nodes.

inner?cljs

(inner? _)

Check whether the node can contain children.

Check whether the node can contain children.

replace-childrencljs

(replace-children _ children)

Replace the node's children.

Replace the node's children.
sourceraw docstring

Nodecljsprotocol

Protocol for EDN/Clojure nodes.

Protocol for EDN/Clojure nodes.

tagcljs

(tag _)

Keyword representing the type of the node.

Keyword representing the type of the node.

printable-only?cljs

(printable-only? _)

Return true if the node cannot be converted to an s-expression element.

Return true if the node cannot be converted to an s-expression
element.

sexprcljs

(sexpr _)

Convert node to s-expression.

Convert node to s-expression.

stringcljs

(string _)

Convert node to printable string.

Convert node to printable string.

lengthcljs

(length _)

Get number of characters for the string version of this node.

Get number of characters for the string version of this node.
sourceraw docstring

NodeCoerceablecljsprotocol

Protocol for values that can be coerced to nodes.

Protocol for values that can be coerced to nodes.

coercecljs

(coerce _)
sourceraw docstring

sexprscljs

(sexprs nodes)

Given a seq of nodes, convert those that represent s-expressions to the respective forms.

Given a seq of nodes, convert those that represent s-expressions
to the respective forms.
sourceraw docstring

sum-lengthscljs

(sum-lengths nodes)

Sum up lengths of the given nodes.

Sum up lengths of the given nodes.
sourceraw docstring

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

× close