Rewrite-cljs Api Documentation

Version: 0.3.0

rewrite-clj.node.protocols

assert-sexpr-count

(assert-sexpr-count nodes c)

assert-single-sexpr

(assert-single-sexpr nodes)

child-sexprs

(child-sexprs node)

Get all child s-expressions for the given node.

concat-strings

(concat-strings nodes)

Convert nodes to strings and concatenate them.

InnerNode

protocol

members

children

(children _)

inner?

(inner? _)

replace-children

(replace-children _ children)

Node

protocol

members

printable-only?

(printable-only? _)

tag

(tag _)

string

(string _)

length

(length _)

sexpr

(sexpr _)

NodeCoerceable

protocol

members

coerce

(coerce _)

sexprs

(sexprs nodes)

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

sum-lengths

(sum-lengths nodes)

Sum up lengths of the given nodes.