CloneableInstantiable
| Constants |
public PhpParser
|
public PhpParser
|
public PhpParser
|
public PhpParser
|
| Methods |
| public __construct(PhpParser Create a traverser with the given visitors.
|
| public addVisitor(PhpParser Adds a visitor.
|
| public removeVisitor(PhpParser Removes an added visitor. |
| public traverse(array $nodes) : array Traverses an array of nodes using the registered visitors.
|
| Properties |
protected bool $stopTraversal
|
protected array $visitors = []
|
| Methods |
| protected traverseArray(array $nodes) : array Recursively traverse array (usually of nodes).
|
| protected traverseNode(PhpParser Recursively traverse a node.
|
| Methods |
| private ensureReplacementReasonable(PhpParser |