Exakat\Tasks\Load::processParenthesis PHP Method

processParenthesis() private method

private processParenthesis ( )
    private function processParenthesis()
    {
        $parentheseId = $this->addAtom('Parenthesis');
        while (!in_array($this->tokens[$this->id + 1][0], array(T_CLOSE_PARENTHESIS))) {
            $this->processNext();
        }
        $indexId = $this->popExpression();
        $this->addLink($parentheseId, $indexId, 'CODE');
        $this->setAtom($parentheseId, array('code' => '(', 'fullcode' => '(' . $this->atoms[$indexId]['fullcode'] . ')', 'line' => $this->tokens[$this->id][2], 'token' => 'T_OPEN_PARENTHESIS'));
        $this->pushExpression($parentheseId);
        ++$this->id;
        // Skipping the )
        if (!$this->isContext(self::CONTEXT_NOSEQUENCE) && $this->tokens[$this->id + 1][0] === T_CLOSE_TAG) {
            $this->processSemicolon();
        }
        return $this->processFCOA($parentheseId);
    }
Load