Home
last modified time | relevance | path

Searched refs:findFirst (Results 1 – 3 of 3) sorted by relevance

/PHP-Parser/lib/PhpParser/
H A DNodeFinder.php58 public function findFirst($nodes, callable $filter): ?Node { function in PhpParser\\NodeFinder
86 return $this->findFirst($nodes, function ($node) use ($class) {
/PHP-Parser/test/PhpParser/
H A DNodeFinderTest.php46 $this->assertSame($vars[0], $finder->findFirst($stmts, $varFilter));
47 $this->assertSame($vars[0], $finder->findFirst($stmts[0], $varFilter));
52 $this->assertNull($finder->findFirst($stmts, $noneFilter));
/PHP-Parser/doc/component/
H A DWalking_the_AST.markdown345 $class = $nodeFinder->findFirst($stmts, function(Node $node) use ($name) {

Completed in 9 milliseconds