Searched refs:Nop (Results 1 – 9 of 9) sorted by relevance
1 Nop statement with comment at end (#513)7 $stmts[1] = new Stmt\Nop(['comments' => [new Comment('//Some comment here')]]);
1 Adding statement to Class Method containing Nop
8 class Nop extends Node\Stmt { class
91 if (!$node instanceof Stmt\Nop && !$node instanceof Expr\Error &&
31 use PhpParser\Node\Stmt\Nop; alias573 && !$stmt instanceof Node\Stmt\Nop684 || $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) {
358 if ($node instanceof Stmt\Nop) {
52 if ($node instanceof Stmt\Nop) {
687 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
1022 protected function pStmt_Nop(Stmt\Nop $node): string {
Completed in 23 milliseconds