QuackCompiler\Parser\Grammar::_rescueStmtList PHP Method

_rescueStmtList() public method

public _rescueStmtList ( )
    public function _rescueStmtList()
    {
        while ($this->parser->consumeIf(Tag::T_RESCUE)) {
            $this->parser->match('(');
            $exception_class = $this->qualifiedName();
            $variable = $this->identifier();
            $this->parser->match(')');
            $body = new StmtList(iterator_to_array($this->_innerStmtList()));
            (yield ["exception_class" => $exception_class, "variable" => $variable, "body" => $body]);
        }
    }