Searched refs:find (Results 1 – 4 of 4) sorted by relevance
/PHP-Parser/lib/PhpParser/ |
H A D | NodeFinder.php | 17 public function find($nodes, callable $filter): array { function in PhpParser\\NodeFinder 45 return $this->find($nodes, function ($node) use ($class) {
|
/PHP-Parser/test/PhpParser/ |
H A D | NodeFinderTest.php | 23 $this->assertSame($vars, $finder->find($stmts, $varFilter)); 24 $this->assertSame($vars, $finder->find($stmts[0], $varFilter)); 29 $this->assertSame([], $finder->find($stmts, $noneFilter));
|
/PHP-Parser/doc/component/ |
H A D | Walking_the_AST.markdown | 323 for minor tasks. For this reason a `NodeFinder` is provided, which can find AST nodes that either 336 $extendingClasses = $nodeFinder->find($stmts, function(Node $node) {
|
/PHP-Parser/ |
H A D | CHANGELOG.md | 773 * Added `NodeFinder` class, which can be used to find nodes based on a callback or class name. This
|
Completed in 16 milliseconds