protected function callScssFunction($name, $argValues, &$returnValue)
{
$func = $this->get(static::$namespaces['function'] . $name, false);
if (!$func) {
return false;
}
$this->pushEnv();
$storeEnv = $this->storeEnv;
$this->storeEnv = $this->env;
// set the args
if (isset($func->args)) {
$this->applyArguments($func->args, $argValues);
}
// throw away lines and children
$tmp = new OutputBlock();
$tmp->lines = [];
$tmp->children = [];
$this->env->marker = 'function';
$ret = $this->compileChildren($func->children, $tmp);
$this->storeEnv = $storeEnv;
$this->popEnv();
$returnValue = !isset($ret) ? static::$defaultValue : $ret;
return true;
}