final | |
|---|---|
extends |
NodeVisitorAbstract |
Visitor that connects a child node to its parent node. With $weakReferences=false on the child node, the parent node can be accessed through
$node->getAttribute('parent'). With $weakReferences=true the attribute name is "weak_parent" instead.
| Methods | ||
|---|---|---|
public
|
__construct(bool $weakReferences = false)
|
# |
public
|
beforeTraverse(array $nodes)
|
# |
public
|
enterNode(Node $node)
|
# |
public
|
leaveNode(Node $node)
|
# |
| Methods inherited from PhpParser\NodeVisitorAbstract |
|---|
afterTraverse() |
| Constants inherited from PhpParser\NodeVisitor |
|---|
|