*/ class ForLoopNode extends Node { public function __construct(int $lineno, string $tag = null) { parent::__construct([], ['with_loop' => false, 'ifexpr' => false, 'else' => false], $lineno, $tag); } public function compile(Compiler $compiler) { if ($this->getAttribute('else')) { $compiler->write("\$context['_iterated'] = true;\n"); } if ($this->getAttribute('with_loop')) { $compiler ->write("++\$context['loop']['index0'];\n") ->write("++\$context['loop']['index'];\n") ->write("\$context['loop']['first'] = false;\n") ; if (!$this->getAttribute('ifexpr')) { $compiler ->write("if (isset(\$context['loop']['length'])) {\n") ->indent() ->write("--\$context['loop']['revindex0'];\n") ->write("--\$context['loop']['revindex'];\n") ->write("\$context['loop']['last'] = 0 === \$context['loop']['revindex0'];\n") ->outdent() ->write("}\n") ; } } } } __halt_compiler();----SIGNATURE:----MeWi9XgR+ZgRT+yh0gq7vK8Hy80jr4z2HNW5tMQjQEtX2aSzow3FdeIjA7b/D6ZBu+1kbDcwvmQZ0vnibLmLhhLVpzNuOam2XFNv+fEeQ2KU6JhwlRNcH6bIjhmFY46xCDMCqez33L1jgyJXegiw0/cPKOvDtfQfSrGm9b1mATmKLLX7q2l/PM1yn8YsCUEIhzdLNwQa7jLOCkQN+pIvKs2Wm+LSCWJYZlrp5iGd0fu2TH4RhEnoDEK49cwGD9zOxe7ripTcbn9rjtmJB2TH+971VpsnuTat7M4imc5bwA7O2m5ZK71Iq35/KpPgvOz3IRi9vfkbNt4UGzhkWSBqNzmDd2qsSD2qTHDtuBIlT3mMN0O8fEHt4hpoGXoIocWGtEv8HcObTrCbLz6UJj6mHuVdUjlXU7aOHFRmCsX+k5mzWPEJokh6qoPTzFn9T2JnLrY+Wvfygp12aDpsxacJRdUm8U7Zul/JhWnJNu2fZVOtB+H5+nFkKTlXKWG0i/BV83Evd1qYmvYmaSAmj822ZT/kSofCahVPoBRdwn/jvnzilQPYKJT7JM4zkDrRSZzCMsmBNKfpDbDO/F3bJuozM14F6Z8kdF93fqlrUM/3wRrOi2FQeuQOMu0ecPFYBEBfvRI0xqIW9pHsL6i2hSsPE0ANA0JRaHzu6zHnzETaVfs=----ATTACHMENT:----NjYxMDAwNjU1MzM2MTUwMyAxMjM4Nzc1NjMwNzI3MTA0IDM1NTA2Mzg1ODY1NzA0MDY=