public function _switchStmt() { $this->parser->match(Tag::T_SWITCH); $value = $this->_expr(); $cases = iterator_to_array($this->_caseStmtList()); $this->parser->match(Tag::T_END); return new SwitchStmt($value, $cases); }