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

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').

CloneableFinalInstantiable
ExtendsPhpParser\NodeVisitorAbstract
ImplementsPhpParser\NodeVisitor
Methods
public PhpParser\NodeVisitorAbstract::afterTraverse(array $nodes)
public beforeTraverse(array $nodes)
public enterNode(PhpParser\Node $node)
public leaveNode(PhpParser\Node $node)
Properties
private $previous
 
  • var ?\Node
private $stack
 
  • var Node[]
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only