Rewrite-cljs Api Documentation

Version: 0.3.0

rewrite-clj.node.whitespace

*count-fn*

dynamic

This function is applied to every newline string and should produce the eventual character count.

*newline-fn*

dynamic

This function is applied to every newline string.

->NewlineNode

(->NewlineNode newlines)

->WhitespaceNode

(->WhitespaceNode whitespace)

comma-separated

(comma-separated nodes)

Interleave the given seq of nodes with ", " nodes.

line-separated

(line-separated nodes)

Interleave the given seq of nodes with newline nodes.

linebreak?

(linebreak? node)

Check whether a ndoe represents linebreaks.

map->NewlineNode

(map->NewlineNode G__5486)

map->WhitespaceNode

(map->WhitespaceNode G__5480)

newline-node

(newline-node s)

Create newline node.

newline?

(newline? c)

Check whether a character represents a linebreak.

newlines

(newlines n)

Create node representing the given number of newline characters.

space-separated

(space-separated nodes)

Interleave the given seq of nodes with " " nodes.

spaces

(spaces n)

Create node representing the given number of spaces.

whitespace-node

(whitespace-node s)

Create whitespace node.

whitespace-nodes

(whitespace-nodes s)

Convert a string of whitespace to whitespace/newline nodes.

whitespace?

(whitespace? node)

Check whether a node represents whitespace.