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
575 && !$stmt instanceof Node\Stmt\Nop
686 || $stmt instanceof Node\Stmt\Nop) {
922 protected function maybeCreateZeroLengthNop(int $tokenPos): ?Nop {
939 return new Nop($attributes);
942 protected function maybeCreateNop(int $tokenStartPos, int $tokenEndPos): ?Nop {
946 return new Nop($this->getAttributes($tokenStartPos, $tokenEndPos));
1007 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.md664 can also contain Nop statements, while this was not previously possible. (#509)
831 * Comments on empty blocks are now preserved on a `Stmt\Nop` node. (#382)
1098 * 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 32 milliseconds