Leafo\ScssPhp\Compiler::shouldEval PHP Method

shouldEval() protected method

Should $value cause its operand to eval
protected shouldEval ( array $value ) : boolean
$value array
return boolean
    protected function shouldEval($value)
    {
        switch ($value[0]) {
            case Type::T_EXPRESSION:
                if ($value[1] === '/') {
                    return $this->shouldEval($value[2], $value[3]);
                }
                // fall-thru
            // fall-thru
            case Type::T_VARIABLE:
            case Type::T_FUNCTION_CALL:
                return true;
        }
        return false;
    }
Compiler