*/ class ForElseNode extends Node { public function __construct(Node $body, int $lineno) { parent::__construct(['body' => $body], [], $lineno); } public function compile(Compiler $compiler): void { $compiler ->addDebugInfo($this) ->write("if (0 === \$iterator->getIndex0()) {\n") ->indent() ->subcompile($this->getNode('body')) ->outdent() ->write("}\n") ; } }