Exakat\Tasks\Load::processDollarCurly PHP Method

processDollarCurly() private method

private processDollarCurly ( )
    private function processDollarCurly()
    {
        $current = $this->id;
        $variableId = $this->addAtom('Variable');
        ++$this->id;
        // Skip ${
        while (!in_array($this->tokens[$this->id + 1][0], array(T_CLOSE_CURLY))) {
            $this->processNext();
        }
        ++$this->id;
        // Skip }
        $nameId = $this->popExpression();
        $this->addLink($variableId, $nameId, 'NAME');
        $this->setAtom($nameId, array('code' => $this->tokens[$current][1], 'fullcode' => '${' . $this->atoms[$nameId]['fullcode'] . '}', 'line' => $this->tokens[$current][2], 'variadic' => false, 'token' => $this->getToken($this->tokens[$current][0]), 'enclosing' => true));
        return $variableId;
    }
Load