This visitor can be used to find and collect all nodes satisfying some criterion determined by
a filter callback.
Cloneable
Instantiable
Methods |
public __construct ( callable $filterCallback ) |
public beforeTraverse ( array $nodes ) |
public enterNode ( PhpParser\Node $node ) |
public
getFoundNodes
() :
array
Get found nodes satisfying the filter callback. Nodes are returned in pre-order.
|
Properties |
protected
$filterCallback
|
protected
$foundNodes
|