Searched refs:findFirstInstanceOf (Results 1 – 3 of 3) sorted by relevance
58 $this->assertSame($vars[0], $finder->findFirstInstanceOf($stmts, Expr\Variable::class));59 $this->assertSame($vars[0], $finder->findFirstInstanceOf($stmts[0], Expr\Variable::class));60 $this->assertNull($finder->findFirstInstanceOf($stmts, Expr\BinaryOp\Mul::class));
85 public function findFirstInstanceOf($nodes, string $class): ?Node { function in PhpParser\\NodeFinder
342 $class = $nodeFinder->findFirstInstanceOf($stmts, Node\Stmt\Class_::class);
Completed in 15 milliseconds