final | |
|---|---|
extends |
NodeVisitorAbstract |
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').
| Methods | ||
|---|---|---|
public
|
beforeTraverse(array $nodes)
|
# |
public
|
enterNode(Node $node)
|
# |
public
|
leaveNode(Node $node)
|
# |
| Methods inherited from PhpParser\NodeVisitorAbstract |
|---|
afterTraverse() |