Home
last modified time | relevance | path

Searched refs:NodeTraverser (Results 1 – 25 of 27) sorted by relevance

12

/PHP-Parser/test/PhpParser/
H A DNodeTraverserTest.php19 $traverser = new NodeTraverser();
87 $traverser = new NodeTraverser();
111 $traverser = new NodeTraverser();
136 $traverser = new NodeTraverser();
161 $traverser = new NodeTraverser();
176 $traverser = new NodeTraverser();
206 $traverser = new NodeTraverser();
232 $traverser = new NodeTraverser();
269 $traverser = new NodeTraverser();
282 $traverser = new NodeTraverser();
[all …]
H A DCodeParsingTest.php70 $traverser = new NodeTraverser(new class () extends NodeVisitorAbstract {
H A DPrettyPrinterTest.php193 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());
231 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());
/PHP-Parser/test/PhpParser/NodeVisitor/
H A DFirstFindingVisitorTest.php7 use PhpParser\NodeTraverser; alias
11 $traverser = new NodeTraverser();
25 $traverser = new NodeTraverser();
H A DParentConnectingVisitorTest.php7 use PhpParser\NodeTraverser; alias
16 $traverser = new NodeTraverser();
H A DFindingVisitorTest.php7 use PhpParser\NodeTraverser; alias
11 $traverser = new NodeTraverser();
31 $traverser = new NodeTraverser();
H A DNameResolverTest.php358 $traverser = new PhpParser\NodeTraverser();
377 $traverser = new PhpParser\NodeTraverser();
411 $traverser = new PhpParser\NodeTraverser();
429 $traverser = new PhpParser\NodeTraverser();
487 $traverser = new PhpParser\NodeTraverser();
516 $traverser = new PhpParser\NodeTraverser();
529 $traverser = new PhpParser\NodeTraverser();
548 $traverser = new PhpParser\NodeTraverser();
571 $traverser = new PhpParser\NodeTraverser();
H A DNodeConnectingVisitorTest.php9 use PhpParser\NodeTraverser; alias
18 $traverser = new NodeTraverser();
/PHP-Parser/doc/component/
H A DFAQ.markdown13 use PhpParser\NodeTraverser;
19 $traverser = new NodeTraverser(new ParentConnectingVisitor);
35 use PhpParser\NodeTraverser;
41 $traverser = new NodeTraverser(new NodeConnectingVisitor);
H A DWalking_the_AST.markdown9 use PhpParser\{Node, NodeTraverser, NodeVisitorAbstract};
11 $traverser = new NodeTraverser;
24 Visitors can be either passed to the `NodeTraverser` constructor, or added using `addVisitor()`:
27 $traverser = new NodeTraverser($visitor1, $visitor2, $visitor3);
30 $traverser = new NodeTraverser();
259 $traverser = new NodeTraverser;
296 $traverserA = new NodeTraverser;
298 $traverserB = new NodeTraverser;
H A DPretty_printing.markdown80 use PhpParser\{NodeTraverser, NodeVisitor, ParserFactory, PrettyPrinter};
87 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());
H A DName_resolution.markdown18 $nodeTraverser = new PhpParser\NodeTraverser;
H A DLexer.markdown117 $traverser = new PhpParser\NodeTraverser($visitor);
/PHP-Parser/lib/PhpParser/
H A DNodeFinder.php28 $traverser = new NodeTraverser($visitor);
69 $traverser = new NodeTraverser($visitor);
H A DNodeTraverser.php5 class NodeTraverser implements NodeTraverserInterface { class
/PHP-Parser/
H A Dphpstan-baseline.neon124 …message: "#^Method PhpParser\\\\NodeTraverser\\:\\:traverseArray\\(\\) has parameter \\$nodes with…
126 path: lib/PhpParser/NodeTraverser.php
129 …message: "#^Method PhpParser\\\\NodeTraverser\\:\\:traverseArray\\(\\) return type has no value ty…
131 path: lib/PhpParser/NodeTraverser.php
H A DUPGRADE-5.0.md451 Additionally, the special `NodeVisitor` return values have been moved from `NodeTraverser` to `Node…
454 PhpParser\NodeTraverser::REMOVE_NODE -> PhpParser\NodeVisitor::REMOVE_NODE
455 PhpParser\NodeTraverser::DONT_TRAVERSE_CHILDREN -> PhpParser\NodeVisitor::DONT_TRAVERSE_CHILDREN
456 PhpParser\NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN -> PhpParser\NodeVisitor::DONT_TRAVERSE…
457 PhpParser\NodeTraverser::STOP_TRAVERSAL -> PhpParser\NodeVisitor::STOP_TRAVERSAL
460 Visitors can now also be passed directly to the `NodeTraverser` constructor:
464 $traverser = new NodeTraverser();
468 $traverser = new NodeTraverser(new NameResolver());
514 $traverser = new NodeTraverser();
524 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());
H A DUPGRADE-4.0.md67 * The `NodeTraverser` no longer accepts `false` as a return value from a `leaveNode()` method.
68 `NodeTraverser::REMOVE_NODE` should be returned instead.
H A DREADME.md120 use PhpParser\NodeTraverser;
123 $traverser = new NodeTraverser();
H A DUPGRADE-2.0.md66 * The `NodeTraverser` no longer clones nodes by default. If you want to restore the old behavior,
H A DCHANGELOG.md131 * Visitors can now be passed directly to the `NodeTraverser` constructor. A separate call to
176 * Moved `NodeTraverser::REMOVE_NODE` etc. to `NodeVisitor::REMOVE_NODE`. The old constants are still
654 * Added `DONT_TRAVERSE_CURRENT_AND_CHILDREN` to `NodeTraverser` to skip both traversal of child
815 * The `NodeTraverser` no longer accepts `false` as a return value from a `leaveNode()` method.
816 `NodeTraverser::REMOVE_NODE` should be returned instead.
1018 * Removed support for node cloning in the `NodeTraverser`.
1233 * The `NodeTraverser` no longer clones nodes by default. The old behavior can be restored by
/PHP-Parser/bin/
H A Dphp-parse36 $traverser = new PhpParser\NodeTraverser();
/PHP-Parser/tools/fuzzing/
H A Dtarget.php100 $traverser = new PhpParser\NodeTraverser();
/PHP-Parser/test_old/
H A Drun.php146 $cloningTraverser = new PhpParser\NodeTraverser;
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown280 structure of a program using this `PhpParser\NodeTraverser` looks like this:
283 use PhpParser\NodeTraverser;
288 $traverser = new NodeTraverser;
408 use PhpParser\NodeTraverser;
415 $traverser = new NodeTraverser;

Completed in 28 milliseconds

12