Home
last modified time | relevance | path

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

/PHP-Parser/test/PhpParser/
H A DNodeFinderTest.php58 $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));
/PHP-Parser/lib/PhpParser/
H A DNodeFinder.php85 public function findFirstInstanceOf($nodes, string $class): ?Node { function in PhpParser\\NodeFinder
/PHP-Parser/doc/component/
H A DWalking_the_AST.markdown342 $class = $nodeFinder->findFirstInstanceOf($stmts, Node\Stmt\Class_::class);

Completed in 15 milliseconds