Skip to main content

deref-node

function

rewrite-clj.node/deref-node

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

No examples yet. Be the first to add one!