Searched refs:findFirst (Results 1 – 3 of 3) sorted by relevance
58 public function findFirst($nodes, callable $filter): ?Node { function in PhpParser\\NodeFinder86 return $this->findFirst($nodes, function ($node) use ($class) {
46 $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));
345 $class = $nodeFinder->findFirst($stmts, function(Node $node) use ($name) {
Completed in 5 milliseconds