Exakat\Tasks\Load::makeFunctioncall PHP Метод

makeFunctioncall() приватный Метод

private makeFunctioncall ( $nameTokenId, $argumentsId )
    private function makeFunctioncall($nameTokenId, $argumentsId = 0)
    {
        $functioncallId = $this->addAtom('Functioncall');
        $current = $this->id;
        if ($argumentsId === 0) {
            $voidId = $this->addAtomVoid();
            $argumentsId = $this->addAtom('Arguments');
            $this->addLink($argumentsId, $voidId, 'ARGUMENT');
            $this->setAtom($argumentsId, array('code' => $this->atoms[$voidId]['code'], 'fullcode' => $this->atoms[$voidId]['fullcode'], 'line' => $this->tokens[$current][2], 'token' => $this->getToken($this->tokens[$current][0])));
        }
        $nameId = $this->addAtom('Identifier');
        $this->addLink($functioncallId, $nameId, 'NAME');
        $this->setAtom($nameId, array('code' => $this->tokens[$nameTokenId][1], 'fullcode' => $this->tokens[$nameTokenId][1], 'variadic' => false, 'line' => $this->tokens[$current][2], 'token' => $this->getToken($this->tokens[$current][0])));
        $this->addLink($functioncallId, $argumentsId, 'ARGUMENTS');
        $this->setAtom($functioncallId, array('code' => $this->tokens[$nameTokenId][1], 'fullcode' => $this->tokens[$nameTokenId][1] . ' ' . $this->atoms[$argumentsId]['code'], 'line' => $this->tokens[$current][2], 'token' => $this->getToken($this->tokens[$current][0])));
        $this->pushExpression($functioncallId);
        return $functioncallId;
    }
Load