Rewrite-cljs Api Documentation

Version: 0.3.0

rewrite-clj.zip.move

down

(down zloc)

Move down to next non-whitespace/non-comment location.

end?

(end? zloc)

Check whether the given node is at the end of the depth-first traversal.

left

(left zloc)

Move left to next non-whitespace/non-comment location.

leftmost

(leftmost zloc)

Move to the leftmost non-whitespace/non-comment location.

leftmost?

(leftmost? zloc)

Check if the given location represents the leftmost non-whitespace/ non-comment one.

next

(next zloc)

Move to the next non-whitespace/non-comment location in a depth-first manner.

prev

(prev zloc)

Move to the next non-whitespace/non-comment location in a depth-first manner.

right

(right zloc)

Move right to next non-whitespace/non-comment location.

rightmost

(rightmost zloc)

Move to the rightmost non-whitespace/non-comment location.

rightmost?

(rightmost? zloc)

Check if the given location represents the leftmost non-whitespace/ non-comment one.

up

(up zloc)

Move up to next non-whitespace/non-comment location.