PHPCfg\Parser::parseExpr_Instanceof PHP Method

parseExpr_Instanceof() protected method

protected parseExpr_Instanceof ( PhpParser\Node\Expr\InstanceOf_ $expr )
$expr PhpParser\Node\Expr\InstanceOf_
    protected function parseExpr_Instanceof(Expr\InstanceOf_ $expr)
    {
        $var = $this->readVariable($this->parseExprNode($expr->expr));
        $class = $this->readVariable($this->parseExprNode($expr->class));
        $op = new Op\Expr\InstanceOf_($var, $class, $this->mapAttributes($expr));
        $op->result->addAssertion($var, new Assertion\TypeAssertion($class));
        return $op;
    }
Parser