(assoc-attribute node key value)
Associates an attribute to a node.
Associates an attribute to a node.
(assoc-attribute-recursive node key value)
Associates an attribute to a node and its children.
Associates an attribute to a node and its children.
(assoc-context-item node item-key value)
Associates context item to a node.
Associates context item to a node.
(ast-node type attributes)
(ast-node type attributes context)
(ast-node type attributes context children)
Creates a new AST node.
Creates a new AST node.
(children node)
Returns a array of children of the node.
Returns a array of children of the node.
(construct-ast parse-tree)
Construct an AST from a parse tree.
Construct an AST from a parse tree.
(construct-asts parse-trees)
Construct ASTs from parse trees.
Construct ASTs from parse trees.
(drop-children node n)
Returns a vector of all but the first n children of the node.
Returns a vector of all but the first n children of the node.
(first-children node)
Returns the first child of the given node.
Returns the first child of the given node.
(get-attribute node attribute-name)
Returns value of the attribute of the node.
Returns value of the attribute of the node.
(is-node? hierarchy node type)
True, if the node has the the given type with respect to the given hierarchy.
True, if the node has the the given type with respect to the given hierarchy.
(nth-children node index)
(postwalk ast files function)
(replace-node ast match-fn replacement-fn)
(replace-node ast match-fn replacement-fn stop-fn)
Performs a pre-order walk and each node is replaced by the return value of the replacement function applied on the visiting node, if the match function applied on the visiting node returns true. The walk of the current branch stops, if the stop function applied on the visiting node returns true
Performs a pre-order walk and each node is replaced by the return value of the replacement function applied on the visiting node, if the match function applied on the visiting node returns true. The walk of the current branch stops, if the stop function applied on the visiting node returns true
(rest-children node)
Returns the first child of the given node.
Returns the first child of the given node.
(same-asts? ast1 ast2)
True, if the both ASTs are equal apart from the fact, that the format infos differ.
True, if the both ASTs are equal apart from the fact, that the format infos differ.
Represents the core hierarchy of AST node types.
Represents the core hierarchy of AST node types.
(type-node node)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close