addVisitor()
addVisitor(\PhpParser\NodeVisitor $visitor)
Adds a visitor.
Parameters
\PhpParser\NodeVisitor | $visitor | Visitor to add |
addVisitor(\PhpParser\NodeVisitor $visitor)
Adds a visitor.
\PhpParser\NodeVisitor | $visitor | Visitor to add |
removeVisitor(\PhpParser\NodeVisitor $visitor)
Removes an added visitor.
\PhpParser\NodeVisitor | $visitor |
traverse(array<mixed,\PhpParser\Node> $nodes) : array<mixed,\PhpParser\Node>
Traverses an array of nodes using the registered visitors.
array<mixed,\PhpParser\Node> | $nodes | Array of nodes |
Traversed array of nodes