protected function compileChildrenNoReturn($stms, OutputBlock $out) { foreach ($stms as $stm) { $ret = $this->compileChild($stm, $out); if (isset($ret)) { $this->throwError('@return may only be used within a function'); return; } } }