public function createArgumentList(TES4FunctionArguments $arguments, TES5CodeScope $codeScope, TES5LocalScope $localScope) { $list = new TES5ObjectCallArguments(); foreach ($arguments->getValues() as $argument) { $newValue = $this->valueFactory->createValue($argument, $codeScope, $localScope); $list->add($newValue); } return $list; }
private function createArgumentList(TES4FunctionArguments $arguments = null, TES5CodeScope $codeScope, TES5GlobalScope $globalScope, TES5MultipleScriptsScope $multipleScriptsScope) { $list = new TES5ObjectCallArguments(); if ($arguments === null) { return $list; } foreach ($arguments->getValues() as $argument) { $newValue = $this->createValue($argument, $codeScope, $globalScope, $multipleScriptsScope); $list->add($newValue); } return $list; }