Leafo\ScssPhp\Compiler::libCall PHP Method

libCall() protected method

..'];
protected libCall ( $args, $kwargs )
    protected function libCall($args, $kwargs)
    {
        $name = $this->compileStringContent($this->coerceString($this->reduce(array_shift($args), true)));
        $args = array_map(function ($a) {
            return [null, $a, false];
        }, $args);
        if (count($kwargs)) {
            foreach ($kwargs as $key => $value) {
                $args[] = [[Type::T_VARIABLE, $key], $value, false];
            }
        }
        return $this->reduce([Type::T_FUNCTION_CALL, $name, $args]);
    }
Compiler