Home
last modified time | relevance | path

Searched refs:If_ (Results 1 – 11 of 11) sorted by relevance

/PHP-Parser/test/PhpParser/NodeVisitor/
H A DNodeConnectingVisitorTest.php7 use PhpParser\Node\Stmt\If_; alias
26 $this->assertSame(If_::class, get_class($node->getAttribute('parent')));
/PHP-Parser/test/code/formatPreservation/
H A Dindent.test6 $stmts[0] = new Stmt\If_(new Expr\Variable('a'), ['stmts' => $stmts]);
17 $stmts[0] = new Stmt\If_(new Expr\Variable('a'), ['stmts' => $stmts]);
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DIf_.php7 class If_ extends Node\Stmt { class
/PHP-Parser/test/PhpParser/
H A DNodeTraverserTest.php9 use PhpParser\Node\Stmt\If_; alias
350 $if1 = new If_($one, ['else' => $else1]);
351 $if2 = new If_($one, ['else' => $else2]);
363 new If_($one),
364 new If_($one),
H A DPrettyPrinterTest.php261 new Stmt\If_(new Int_(1), [
/PHP-Parser/lib/PhpParser/
H A DPrettyPrinterAbstract.php1511 Stmt\If_::class . '->elseifs' => ' ',
1571 Stmt\If_::class . '->stmts' => "\n",
/PHP-Parser/grammar/
H A Dphp.y375 { $$ = Stmt\If_[$3, ['stmts' => $5, 'elseifs' => $6, 'else' => $7]]; }
377 { $$ = Stmt\If_[$3, ['stmts' => $6, 'elseifs' => $7, 'else' => $8]]; }
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php895 protected function pStmt_If(Stmt\If_ $node): string {
908 if (\count($node->stmts) === 1 && $node->stmts[0] instanceof Stmt\If_) {
/PHP-Parser/doc/component/
H A DWalking_the_AST.markdown190 occurs inside `Node\Stmt\If_::$else`, which is nullable, so this particular replacement is safe.
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php1471 …$self->semValue = new Stmt\If_($self->semStack[$stackPos-(7-3)], ['stmts' => $self->semStack[$stac…
1474 …$self->semValue = new Stmt\If_($self->semStack[$stackPos-(10-3)], ['stmts' => $self->semStack[$sta…
H A DPhp8.php1466 …$self->semValue = new Stmt\If_($self->semStack[$stackPos-(7-3)], ['stmts' => $self->semStack[$stac…
1469 …$self->semValue = new Stmt\If_($self->semStack[$stackPos-(10-3)], ['stmts' => $self->semStack[$sta…

Completed in 48 milliseconds