Skip to main content

unquote-node

function

rewrite-clj.node/unquote-node

(unquote-node [children])
Create node representing a single unquoted form where `children` is either a sequence of nodes or a single node. ```Clojure (require '[rewrite-clj.node :as n]) (-> (n/unquote-node (n/token-node 'my-var)) n/string) ;; => "~my-var" ;; specifying a sequence allows for whitespace between the ;; unquote and the uquoted (-> (n/unquote-node [(n/spaces 4) (n/token-node 'my-var)]) n/string) ;; => "~ my-var" ```

No examples yet. Be the first to add one!