quote-node
function
rewrite-clj.node/quote-node
(quote-node [children])Create node representing a single quoted form where `children`
is either a sequence of nodes or a single node.
```Clojure
(require '[rewrite-clj.node :as n])
(-> (n/quote-node (n/token-node 'sym))
(n/string))
;; => "'sym"
;; specifying a sequence allows for whitespace between the
;; quote and the quoted
(-> (n/quote-node [(n/spaces 10)
(n/token-node 'sym1) ])
n/string)
;; => "' sym1"
```
Examples
No examples yet. Be the first to add one!