Searched refs:NodeFinder (Results 1 – 6 of 6) sorted by relevance
8 use PhpParser\NodeFinder; alias24 $node = (new NodeFinder())->findFirstInstanceof($ast, Else_::class);29 $node = (new NodeFinder())->findFirstInstanceof($ast, ConstFetch::class);
6 use PhpParser\NodeFinder; alias22 $node = (new NodeFinder())->findFirstInstanceof($ast, ClassMethod::class);
18 $finder = new NodeFinder();33 $finder = new NodeFinder();41 $finder = new NodeFinder();56 $finder = new NodeFinder();
8 class NodeFinder { class
251 handled using a NodeFinder, which will be introduced below.323 for minor tasks. For this reason a `NodeFinder` is provided, which can find AST nodes that either328 use PhpParser\{Node, NodeFinder};330 $nodeFinder = new NodeFinder;351 Internally, the `NodeFinder` also uses a node traverser. It only simplifies the interface for a
773 * Added `NodeFinder` class, which can be used to find nodes based on a callback or class name. This
Completed in 15 milliseconds