Rewrite-cljs Api Documentation

Version: 0.3.0

rewrite-clj.zip.base

child-sexprs

(child-sexprs zloc)

Get children as s-expressions.

edn

(edn node)

Create zipper over the given Clojure/EDN node and move to the first non-whitespace/non-comment child.

edn*

(edn* node)

Create zipper over the given Clojure/EDN node.

length

(length zloc)

Get length of printable string for the given zipper location.

of-string

(of-string s)

Create zipper from String.

root-string

(root-string zloc)

Create string representing the zipped-up zipper.

sexpr

(sexpr zloc)

Get sexpr represented by the given node.

string

(string zloc)

Create string representing the current zipper location.

tag

(tag zloc)

Get tag of node at the current zipper location.

value

deprecated in 0.4.0

(value zloc)

DEPRECATED. Return a tag/s-expression pair for inner nodes, or the s-expression itself for leaves.