Leafo\ScssPhp\Compiler::libTypeOf PHP Méthode

libTypeOf() protected méthode

protected libTypeOf ( $args )
    protected function libTypeOf($args)
    {
        $value = $args[0];
        switch ($value[0]) {
            case Type::T_KEYWORD:
                if ($value === static::$true || $value === static::$false) {
                    return 'bool';
                }
                if ($this->coerceColor($value)) {
                    return 'color';
                }
                // fall-thru
            // fall-thru
            case Type::T_FUNCTION:
                return 'string';
            case Type::T_LIST:
                if (isset($value[3]) && $value[3]) {
                    return 'arglist';
                }
                // fall-thru
            // fall-thru
            default:
                return $value[0];
        }
    }
Compiler