Searched refs:addVisitor (Results 1 – 17 of 17) sorted by relevance
20 $traverser->addVisitor($visitor);88 $traverser->addVisitor($visitor2);89 $traverser->addVisitor($visitor);112 $traverser->addVisitor($visitor);113 $traverser->addVisitor($visitor2);137 $traverser->addVisitor($visitor);138 $traverser->addVisitor($visitor2);162 $traverser->addVisitor($visitor);270 $traverser->addVisitor($visitor);283 $traverser->addVisitor($visitor);[all …]
359 $traverser->addVisitor(new NameResolver());378 $traverser->addVisitor(new NameResolver());412 $traverser->addVisitor(new NameResolver());430 $traverser->addVisitor(new NameResolver());488 $traverser->addVisitor(new NameResolver());517 $traverser->addVisitor(new NameResolver());530 $traverser->addVisitor(new NameResolver(null, ['preserveOriginalNames' => true]));549 $traverser->addVisitor(new NameResolver(null, ['replaceNodes' => false]));572 $traverser->addVisitor(new NameResolver());
15 $traverser->addVisitor($visitor);29 $traverser->addVisitor($visitor);
15 $traverser->addVisitor($visitor);35 $traverser->addVisitor($visitor);
18 $traverser->addVisitor(new ParentConnectingVisitor());
20 $traverser->addVisitor(new NodeConnectingVisitor());
11 public function addVisitor(NodeVisitor $visitor): void; function
46 public function addVisitor(NodeVisitor $visitor): void { function in PhpParser\\NodeTraverser
12 $traverser->addVisitor(new class extends NodeVisitorAbstract {24 Visitors can be either passed to the `NodeTraverser` constructor, or added using `addVisitor()`:31 $traverser->addVisitor($visitor1);32 $traverser->addVisitor($visitor2);33 $traverser->addVisitor($visitor3);260 $traverser->addVisitor($visitorA);261 $traverser->addVisitor($visitorB);297 $traverserA->addVisitor($visitorA);299 $traverserB->addVisitor($visitorB);
19 $nodeTraverser->addVisitor($nameResolver);
37 $traverser->addVisitor(new PhpParser\NodeVisitor\NameResolver);
101 $traverser->addVisitor($visitor);
147 $cloningTraverser->addVisitor(new PhpParser\NodeVisitor\CloningVisitor);
124 $traverser->addVisitor(new class extends NodeVisitorAbstract {
465 $traverser->addVisitor(new NameResolver());515 $traverser->addVisitor(new NodeVisitor\CloningVisitor());
132 `addVisitor()` is no longer required.
292 $traverser->addVisitor(new MyNodeVisitor);418 $traverser->addVisitor(new NameResolver); // we will need resolved names419 $traverser->addVisitor(new NamespaceConverter); // our own node visitor
Completed in 30 milliseconds