Lines Matching refs:NodeVisitor
329 All visitors must implement the `PhpParser\NodeVisitor` interface, which defines the following four
352 The `enterNode()` method can additionally return the value `NodeVisitor::DONT_TRAVERSE_CHILDREN`,
354 visitors from visiting the current node, `NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN` can be u…
358 * `NodeVisitor::STOP_TRAVERSAL`, in which case no further nodes will be visited.
359 * `NodeVisitor::REMOVE_NODE`, in which case the current node will be removed from the parent array.
360 * `NodeVisitor::REPLACE_WITH_NULL`, in which case the current node will be replaced with `null`.
365 Instead of manually implementing the `NodeVisitor` interface you can also extend the `NodeVisitorAb…
373 One visitor that is already bundled with the package is `PhpParser\NodeVisitor\NameResolver`. This …
409 use PhpParser\NodeVisitor\NameResolver;
505 use PhpParser\NodeVisitor;
525 return NodeVisitor::REMOVE_NODE;