token-node
function
rewrite-clj.node/token-node
(token-node [value] [value string-value])Create node for an unspecified token of `value`.
```Clojure
(require '[rewrite-clj.node :as n])
(-> (n/token-node 'sym) n/string)
;; => "sym"
(-> (n/token-node 42) n/string)
;; => "42"
(-> (n/token-node "astring") n/string)
;; => "\"astring\""
```
To construct strings appearing over multiple lines, see [[string-node]].
Examples
No examples yet. Be the first to add one!