Class PhpParser\NodeVisitor\CloningVisitor

extends NodeVisitorAbstract

Visitor cloning all nodes and linking to the original nodes using an attribute.

This visitor is required to perform format-preserving pretty prints.

Methods
Methods inherited from PhpParser\NodeVisitorAbstract
beforeTraverse(), leaveNode(), afterTraverse()
Constants inherited from PhpParser\NodeVisitor
DONT_TRAVERSE_CHILDREN, STOP_TRAVERSAL, REMOVE_NODE, DONT_TRAVERSE_CURRENT_AND_CHILDREN, REPLACE_WITH_NULL