Skip to main content

of-node

function

rewrite-clj.zip/of-node

(of-node [node] [node opts])
Create and return zipper from a rewrite-clj `node` (likely parsed by [[rewrite-clj.parser]]), and move to the first non-whitespace/non-comment child. If node is not forms node, is wrapped in forms node for a consistent root. Optional `opts` can specify: - `:track-position?` set to `true` to enable ones-based row/column tracking, see [docs on position tracking](/doc/01-user-guide.adoc#position-tracking). - `:auto-resolve` specify a function to customize namespaced element auto-resolve behavior, see [docs on namespaced elements](/doc/01-user-guide.adoc#namespaced-elements)

No examples yet. Be the first to add one!