Home
last modified time | relevance | path

Searched refs:Nop (Results 1 – 9 of 9) sorted by relevance

/PHP-Parser/test/code/formatPreservation/
H A DnopCommentAtEnd.test1 Nop statement with comment at end (#513)
7 $stmts[1] = new Stmt\Nop(['comments' => [new Comment('//Some comment here')]]);
H A DclassMethodNop.test1 Adding statement to Class Method containing Nop
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DNop.php8 class Nop extends Node\Stmt { class
/PHP-Parser/test/PhpParser/
H A DCodeParsingTest.php91 if (!$node instanceof Stmt\Nop && !$node instanceof Expr\Error &&
/PHP-Parser/lib/PhpParser/
H A DParserAbstract.php31 use PhpParser\Node\Stmt\Nop; alias
573 && !$stmt instanceof Node\Stmt\Nop
684 || $stmt instanceof Node\Stmt\Nop) {
920 protected function maybeCreateZeroLengthNop(int $tokenPos): ?Nop {
937 return new Nop($attributes);
940 protected function maybeCreateNop(int $tokenStartPos, int $tokenEndPos): ?Nop {
944 return new Nop($this->getAttributes($tokenStartPos, $tokenEndPos));
1005 if ($numStmts !== 0 && $node->stmts[$numStmts - 1] instanceof Nop) {
H A DPrettyPrinterAbstract.php358 if ($node instanceof Stmt\Nop) {
/PHP-Parser/tools/fuzzing/
H A Dtarget.php52 if ($node instanceof Stmt\Nop) {
/PHP-Parser/
H A DCHANGELOG.md687 can also contain Nop statements, while this was not previously possible. (#509)
854 * Comments on empty blocks are now preserved on a `Stmt\Nop` node. (#382)
1121 * Added `Stmt\Nop` node, that is used to collect comments located at the end of a block or at the
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php1022 protected function pStmt_Nop(Stmt\Nop $node): string {

Completed in 23 milliseconds