Liking cljdoc? Tell your friends :D

danlaps.clolyze.ast


assoc-attributeclj

(assoc-attribute node key value)

Associates an attribute to a node.

Associates an attribute to a node.
raw docstring

assoc-attribute-recursiveclj

(assoc-attribute-recursive node key value)

Associates an attribute to a node and its children.

Associates an attribute to a node and its children.
raw docstring

assoc-context-itemclj

(assoc-context-item node item-key value)

Associates context item to a node.

Associates context item to a node.
raw docstring

ast-nodeclj

(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.
raw docstring

ASTNodeclj


childrenclj

(children node)

Returns a array of children of the node.

Returns a array of children of the node.
raw docstring

construct-astclj

(construct-ast parse-tree)

Construct an AST from a parse tree.

Construct an AST from a parse tree.
raw docstring

construct-astsclj

(construct-asts parse-trees)

Construct ASTs from parse trees.

Construct ASTs from parse trees.
raw docstring

drop-childrenclj

(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.
raw docstring

first-childrenclj

(first-children node)

Returns the first child of the given node.

Returns the first child of the given node.
raw docstring

get-attributeclj

(get-attribute node attribute-name)

Returns value of the attribute of the node.

Returns value of the attribute of the node.
raw docstring

is-node?clj

(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.
raw docstring

nth-childrenclj

(nth-children node index)

postwalkclj

(postwalk ast files function)

replace-nodeclj

(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
raw docstring

rest-childrenclj

(rest-children node)

Returns the first child of the given node.

Returns the first child of the given node.
raw docstring

same-asts?clj

(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.
raw docstring

type-hierarchyclj

Represents the core hierarchy of AST node types.

Represents the core hierarchy of AST node types.
raw docstring

type-nodeclj

(type-node node)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close