Skip to main content

syntax-quote-node

function

rewrite-clj.node/syntax-quote-node

(syntax-quote-node [children])
Create node representing a single syntax-quoted form where `children` is either a sequence of nodes or a single node. ```Clojure (require '[rewrite-clj.node :as n]) (-> (n/syntax-quote-node (n/token-node 'map)) n/string) ;; => "`map" ;; specifying a sequence allows for whitespace between the ;; syntax quote and the syntax quoted (-> (n/syntax-quote-node [(n/spaces 3) (n/token-node 'map)]) n/string) ;; => "` map" ```

No examples yet. Be the first to add one!