(child-sexprs node)
Get all child s-expressions for the given node.
Get all child s-expressions for the given node.
(coerce _)
(comma-separated nodes)
Interleave the given seq of nodes with ", "
nodes.
Interleave the given seq of nodes with `", "` nodes.
(comma? node)
Check whether a node represents a comma.
Check whether a node represents a comma.
(comment-node s)
Create node representing an EDN comment.
Create node representing an EDN comment.
(comment? node)
Check whether a node represents a comment.
Check whether a node represents a comment.
(deref-node children)
Create node representing the dereferencing of a form. (@...
)
Takes either a seq of nodes or a single one.
Create node representing the dereferencing of a form. (`@...`) Takes either a seq of nodes or a single one.
(eval-node children)
Create node representing an inline evaluation. (#=...
)
Takes either a seq of nodes or a single one.
Create node representing an inline evaluation. (`#=...`) Takes either a seq of nodes or a single one.
(fn-node children)
Create node representing an anonymous function.
Create node representing an anonymous function.
(forms-node children)
Create top-level node wrapping multiple children
(equals an implicit do
on the top-level).
Create top-level node wrapping multiple children (equals an implicit `do` on the top-level).
(inner? _)
Check whether the node can contain children.
Check whether the node can contain children.
(integer-node value)
(integer-node value base)
Create node for an EDN integer with the given base.
Create node for an EDN integer with the given base.
(keyword-node k & [namespaced?])
Create node representing a keyword. If namespaced?
is given as true
a keyword à la ::x
or ::ns/x
(i.e. namespaced/aliased) is generated.
Create node representing a keyword. If `namespaced?` is given as `true` a keyword à la `::x` or `::ns/x` (i.e. namespaced/aliased) is generated.
(leader-length _)
How many characters appear before children?
How many characters appear before children?
(length _)
Get number of characters for the string version of this node.
Get number of characters for the string version of this node.
(line-separated nodes)
Interleave the given seq of nodes with newline nodes.
Interleave the given seq of nodes with newline nodes.
(linebreak? node)
Check whether a ndoe represents linebreaks.
Check whether a ndoe represents linebreaks.
(list-node children)
Create a node representing an EDN list.
Create a node representing an EDN list.
(map-node children)
Create a node representing an EDN map.
Create a node representing an EDN map.
(meta-node children)
(meta-node metadata data)
Create node representing a form and its metadata.
Create node representing a form and its metadata.
(namespaced-map-node children)
Create a node representing an EDN map namespace.
Create a node representing an EDN map namespace.
(newlines n)
Create node representing the given number of newline characters.
Create node representing the given number of newline characters.
(printable-only? _)
Return true if the node cannot be converted to an s-expression element.
Return true if the node cannot be converted to an s-expression element.
(quote-node children)
Create node representing a quoted form. Takes either a seq of nodes or a single one.
Create node representing a quoted form. Takes either a seq of nodes or a single one.
(raw-meta-node children)
(raw-meta-node metadata data)
Create node representing a form and its metadata using the
#^
prefix.
Create node representing a form and its metadata using the `#^` prefix.
(reader-macro-node children)
(reader-macro-node macro-node form-node)
Create node representing a reader macro. (#... ...
)
Create node representing a reader macro. (`#... ...`)
(regex-node pattern-string)
Create node representing a regex
Create node representing a regex
(replace-children _ children)
Replace the node's children.
Replace the node's children.
(set-node children)
Create a node representing an EDN set.
Create a node representing an EDN set.
(sexprs nodes)
Given a seq of nodes, convert those that represent s-expressions to the respective forms.
Given a seq of nodes, convert those that represent s-expressions to the respective forms.
(spaces n)
Create node representing the given number of spaces.
Create node representing the given number of spaces.
(string _)
Convert node to printable string.
Convert node to printable string.
(string-node lines)
Create node representing a string value. Takes either a seq of strings or a single one.
Create node representing a string value. Takes either a seq of strings or a single one.
(syntax-quote-node children)
Create node representing a syntax-quoted form. Takes either a seq of nodes or a single one.
Create node representing a syntax-quoted form. Takes either a seq of nodes or a single one.
(tag _)
Keyword representing the type of the node.
Keyword representing the type of the node.
(token-node value & [string-value])
Create node for an unspecified EDN token.
Create node for an unspecified EDN token.
(uneval-node children)
Create node representing an EDN uneval #_
form.
Create node representing an EDN uneval `#_` form.
(unquote-node children)
Create node representing an unquoted form. (~...
)
Takes either a seq of nodes or a single one.
Create node representing an unquoted form. (`~...`) Takes either a seq of nodes or a single one.
(unquote-splicing-node children)
Create node representing an unquote-spliced form. (~@...
)
Takes either a seq of nodes or a single one.
Create node representing an unquote-spliced form. (`~@...`) Takes either a seq of nodes or a single one.
(value node)
DEPRECATED: Get first child as a pair of tag/sexpr (if inner node),
or just the node's own sexpr. (use explicit analysis of children
child-sexprs
instead)
DEPRECATED: Get first child as a pair of tag/sexpr (if inner node), or just the node's own sexpr. (use explicit analysis of `children` `child-sexprs` instead)
(var-node children)
Create node representing a var. Takes either a seq of nodes or a single one.
Create node representing a var. Takes either a seq of nodes or a single one.
(vector-node children)
Create a node representing an EDN vector.
Create a node representing an EDN vector.
(whitespace-nodes s)
Convert a string of whitespace to whitespace/newline nodes.
Convert a string of whitespace to whitespace/newline nodes.
(whitespace-or-comment? node)
Check whether the given node represents whitespace or comment.
Check whether the given node represents whitespace or comment.
(whitespace? node)
Check whether a node represents whitespace.
Check whether a node represents whitespace.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close