PHPParser_Parser::yyn276 PHP Метод

yyn276() защищенный Метод

protected yyn276 ( $line, $docComment )
    protected function yyn276($line, $docComment)
    {
        if ($this->yyastk[$this->yysp - (4 - 1)] instanceof PHPParser_Node_Expr_StaticPropertyFetch) {
            $this->yyval = new PHPParser_Node_Expr_StaticCall($this->yyastk[$this->yysp - (4 - 1)]->class, new PHPParser_Node_Expr_Variable($this->yyastk[$this->yysp - (4 - 1)]->name, $line, $docComment), $this->yyastk[$this->yysp - (4 - 3)], $line, $docComment);
        } elseif ($this->yyastk[$this->yysp - (4 - 1)] instanceof PHPParser_Node_Expr_ArrayDimFetch) {
            $tmp = $this->yyastk[$this->yysp - (4 - 1)];
            while ($tmp->var instanceof PHPParser_Node_Expr_ArrayDimFetch) {
                $tmp = $tmp->var;
            }
            $this->yyval = new PHPParser_Node_Expr_StaticCall($tmp->var->class, $this->yyastk[$this->yysp - (4 - 1)], $this->yyastk[$this->yysp - (4 - 3)], $line, $docComment);
            $tmp->var = new PHPParser_Node_Expr_Variable($tmp->var->name, $line, $docComment);
        } else {
            throw new Exception();
        }
    }
PHPParser_Parser