Exakat\Tasks\Load::processInstanceof PHP Method

processInstanceof() private method

private processInstanceof ( )
    private function processInstanceof()
    {
        $current = $this->id;
        $instanceId = $this->addAtom('Instanceof');
        $left = $this->popExpression();
        $this->addLink($instanceId, $left, 'VARIABLE');
        $finals = array_merge(array(), $this->precedence->get($this->tokens[$this->id][0]));
        do {
            $this->processNext();
        } while (!in_array($this->tokens[$this->id + 1][0], $finals));
        $right = $this->popExpression();
        $this->addLink($instanceId, $right, 'CLASS');
        $this->setAtom($right, array('fullnspath' => $this->getFullnspath($right, 'class')));
        $this->addCall('class', $this->atoms[$right]['fullnspath'], $right);
        $x = array('code' => $this->tokens[$current][1], 'fullcode' => $this->atoms[$left]['fullcode'] . ' ' . $this->tokens[$current][1] . ' ' . $this->atoms[$right]['fullcode'], 'line' => $this->tokens[$current][2], 'token' => $this->getToken($this->tokens[$current][0]));
        $this->setAtom($instanceId, $x);
        $this->pushExpression($instanceId);
        return $instanceId;
    }
Load