Home
last modified time | relevance | path

Searched refs:addVisitor (Results 1 – 17 of 17) sorted by relevance

/PHP-Parser/test/PhpParser/
H A DNodeTraverserTest.php20 $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 …]
/PHP-Parser/test/PhpParser/NodeVisitor/
H A DNameResolverTest.php359 $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());
H A DFirstFindingVisitorTest.php15 $traverser->addVisitor($visitor);
29 $traverser->addVisitor($visitor);
H A DFindingVisitorTest.php15 $traverser->addVisitor($visitor);
35 $traverser->addVisitor($visitor);
H A DParentConnectingVisitorTest.php18 $traverser->addVisitor(new ParentConnectingVisitor());
H A DNodeConnectingVisitorTest.php20 $traverser->addVisitor(new NodeConnectingVisitor());
/PHP-Parser/lib/PhpParser/
H A DNodeTraverserInterface.php11 public function addVisitor(NodeVisitor $visitor): void; function
H A DNodeTraverser.php46 public function addVisitor(NodeVisitor $visitor): void { function in PhpParser\\NodeTraverser
/PHP-Parser/doc/component/
H A DWalking_the_AST.markdown12 $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);
H A DName_resolution.markdown19 $nodeTraverser->addVisitor($nameResolver);
/PHP-Parser/bin/
H A Dphp-parse37 $traverser->addVisitor(new PhpParser\NodeVisitor\NameResolver);
/PHP-Parser/tools/fuzzing/
H A Dtarget.php101 $traverser->addVisitor($visitor);
/PHP-Parser/test_old/
H A Drun.php147 $cloningTraverser->addVisitor(new PhpParser\NodeVisitor\CloningVisitor);
/PHP-Parser/
H A DREADME.md124 $traverser->addVisitor(new class extends NodeVisitorAbstract {
H A DUPGRADE-5.0.md465 $traverser->addVisitor(new NameResolver());
515 $traverser->addVisitor(new NodeVisitor\CloningVisitor());
H A DCHANGELOG.md132 `addVisitor()` is no longer required.
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown292 $traverser->addVisitor(new MyNodeVisitor);
418 $traverser->addVisitor(new NameResolver); // we will need resolved names
419 $traverser->addVisitor(new NamespaceConverter); // our own node visitor

Completed in 38 milliseconds