Exakat\Tasks\Load::processArrayBracket PHP Method

processArrayBracket() private method

private processArrayBracket ( )
    private function processArrayBracket()
    {
        $current = $this->id;
        $id = $this->addAtom('Functioncall');
        $variableId = $this->addAtom('Identifier');
        $this->addLink($id, $variableId, 'NAME');
        $this->setAtom($variableId, array('code' => '[', 'fullcode' => '[', 'variadic' => false, 'line' => $this->tokens[$this->id][2], 'token' => $this->getToken($this->tokens[$this->id][0]), 'fullnspath' => '\\array'));
        // No need to skip opening bracket
        $argumentId = $this->processArguments(array(T_CLOSE_BRACKET));
        $this->addLink($id, $argumentId, 'ARGUMENTS');
        $this->setAtom($id, array('code' => $this->tokens[$current][1], 'fullcode' => '[' . $this->atoms[$argumentId]['fullcode'] . ']', 'line' => $this->tokens[$this->id][2], 'variadic' => false, 'token' => $this->getToken($this->tokens[$current][0]), 'fullnspath' => '\\array'));
        $this->pushExpression($id);
        if (!$this->isContext(self::CONTEXT_NOSEQUENCE) && $this->tokens[$this->id + 1][0] === T_CLOSE_TAG) {
            $this->processSemicolon();
        } else {
            $id = $this->processFCOA($id);
        }
        return $id;
    }
Load