Class PhpParser\NodeVisitor\NodeConnectingVisitor

final
extends NodeVisitorAbstract

Visitor that connects a child node to its parent node as well as its sibling nodes.

With $weakReferences=false on the child node, the parent node can be accessed through $node->getAttribute('parent'), the previous node can be accessed through $node->getAttribute('previous'), and the next node can be accessed through $node->getAttribute('next').

With $weakReferences=true attribute names are prefixed by "weak_", e.g. "weak_parent".

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