Searched refs:NodeVisitor (Results 26 – 33 of 33) sorted by relevance
12
193 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());231 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());
451 Additionally, the special `NodeVisitor` return values have been moved from `NodeTraverser` to `Node…454 PhpParser\NodeTraverser::REMOVE_NODE -> PhpParser\NodeVisitor::REMOVE_NODE455 PhpParser\NodeTraverser::DONT_TRAVERSE_CHILDREN -> PhpParser\NodeVisitor::DONT_TRAVERSE_CHILDREN456 PhpParser\NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN -> PhpParser\NodeVisitor::DONT_TRAVERSE…457 PhpParser\NodeTraverser::STOP_TRAVERSAL -> PhpParser\NodeVisitor::STOP_TRAVERSAL515 $traverser->addVisitor(new NodeVisitor\CloningVisitor());524 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());
161 * Added support for `NodeVisitor::REPLACE_WITH_NULL`.169 * Moved `NodeTraverser::REMOVE_NODE` etc. to `NodeVisitor::REMOVE_NODE`. The old constants are still249 * Added support for returning an array or `REMOVE_NODE` from `NodeVisitor::enterNode()`.
147 $cloningTraverser->addVisitor(new PhpParser\NodeVisitor\CloningVisitor);
80 use PhpParser\{NodeTraverser, NodeVisitor, ParserFactory, PrettyPrinter};87 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());
3 namespace PhpParser\NodeVisitor;
35 use PhpParser\NodeVisitor\CommentAnnotatingVisitor;
Completed in 25 milliseconds