Searched refs:traverser (Results 1 – 21 of 21) sorted by relevance
19 $traverser = new NodeTraverser();20 $traverser->addVisitor($visitor);87 $traverser = new NodeTraverser();88 $traverser->addVisitor($visitor2);89 $traverser->addVisitor($visitor);111 $traverser = new NodeTraverser();112 $traverser->addVisitor($visitor);136 $traverser = new NodeTraverser();137 $traverser->addVisitor($visitor);161 $traverser = new NodeTraverser();[all …]
70 $traverser = new NodeTraverser(new class () extends NodeVisitorAbstract {99 $traverser->traverse($stmts);
193 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());198 $newStmts = $traverser->traverse($oldStmts);231 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());242 $newStmts = $traverser->traverse($oldStmts);
358 $traverser = new PhpParser\NodeTraverser();359 $traverser->addVisitor(new NameResolver());377 $traverser = new PhpParser\NodeTraverser();378 $traverser->addVisitor(new NameResolver());413 $stmts = $traverser->traverse($stmts);431 $traverser->traverse([$stmt]);490 $stmts = $traverser->traverse($stmts);519 $stmts = $traverser->traverse($stmts);541 $stmts = $traverser->traverse($origStmts);560 $traverser->traverse($origStmts);[all …]
11 $traverser = new NodeTraverser();15 $traverser->addVisitor($visitor);20 $traverser->traverse($stmts);25 $traverser = new NodeTraverser();29 $traverser->addVisitor($visitor);34 $traverser->traverse($stmts);
11 $traverser = new NodeTraverser();15 $traverser->addVisitor($visitor);22 $traverser->traverse($stmts);31 $traverser = new NodeTraverser();35 $traverser->addVisitor($visitor);42 $traverser->traverse($stmts);
16 $traverser = new NodeTraverser();18 $traverser->addVisitor(new ParentConnectingVisitor());20 $ast = $traverser->traverse($ast);
18 $traverser = new NodeTraverser();20 $traverser->addVisitor(new NodeConnectingVisitor());22 $ast = $traverser->traverse($ast);
28 $traverser = new NodeTraverser($visitor);29 $traverser->traverse($nodes);69 $traverser = new NodeTraverser($visitor);70 $traverser->traverse($nodes);
208 $traverser = new NodeTraverser(new CommentAnnotatingVisitor($this->tokens));209 $traverser->traverse($result);
100 $traverser = new PhpParser\NodeTraverser(); variable101 $traverser->addVisitor($visitor);103 …t(function(string $input) use($lexer, $parser, $prettyPrinter, $nodeDumper, $visitor, $traverser) {108 $stmts = $traverser->traverse($stmts);120 $printedStmts = $traverser->traverse($printedStmts);
19 $traverser = new NodeTraverser(new ParentConnectingVisitor);23 $ast = $traverser->traverse($ast);41 $traverser = new NodeTraverser(new NodeConnectingVisitor);45 $ast = $traverser->traverse($ast);
11 $traverser = new NodeTraverser;21 $modifiedStmts = $traverser->traverse($stmts);30 $traverser = new NodeTraverser();31 $traverser->addVisitor($visitor1);32 $traverser->addVisitor($visitor2);33 $traverser->addVisitor($visitor3);259 $traverser = new NodeTraverser;260 $traverser->addVisitor($visitorA);261 $traverser->addVisitor($visitorB);262 $stmts = $traverser->traverse($stmts);[all …]
87 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());88 $newStmts = $traverser->traverse($oldStmts);
117 $traverser = new PhpParser\NodeTraverser($visitor);122 $stmts = $traverser->traverse($stmts);
36 $traverser = new PhpParser\NodeTraverser(); variable37 $traverser->addVisitor(new PhpParser\NodeVisitor\NameResolver);91 $stmts = $traverser->traverse($stmts);
123 $traverser = new NodeTraverser();124 $traverser->addVisitor(new class extends NodeVisitorAbstract {133 $ast = $traverser->traverse($ast);
433 ### Changes to the node traverser435 If there are multiple visitors, the node traverser will now call `leaveNode()` and `afterTraverse()…464 $traverser = new NodeTraverser();465 $traverser->addVisitor(new NameResolver());468 $traverser = new NodeTraverser(new NameResolver());514 $traverser = new NodeTraverser();515 $traverser->addVisitor(new NodeVisitor\CloningVisitor());516 $newStmts = $traverser->traverse($oldStmts);524 $traverser = new NodeTraverser(new NodeVisitor\CloningVisitor());525 $newStmts = $traverser->traverse($oldStmts);
706 * Added checks to node traverser to prevent replacing a statement with an expression or vice versa.
4 This document explains how to use the parser, the pretty printer and the node traverser.288 $traverser = new NodeTraverser;292 $traverser->addVisitor(new MyNodeVisitor);301 $stmts = $traverser->traverse($stmts);340 traverser was called with. This method can be used for resetting values before traversal or353 which instructs the traverser to skip all children of the current node. To furthermore prevent subs…415 $traverser = new NodeTraverser;418 $traverser->addVisitor(new NameResolver); // we will need resolved names419 $traverser->addVisitor(new NamespaceConverter); // our own node visitor434 $stmts = $traverser->traverse($stmts);
92 * Infrastructure for traversing and changing the AST (node traverser and node visitors).
Completed in 27 milliseconds