Leafo\ScssPhp\Compiler::opAdd PHP 메소드

opAdd() 보호된 메소드

Add strings
protected opAdd ( array $left, array $right ) : array
$left array
$right array
리턴 array
    protected function opAdd($left, $right)
    {
        if ($strLeft = $this->coerceString($left)) {
            if ($right[0] === Type::T_STRING) {
                $right[1] = '';
            }
            $strLeft[2][] = $right;
            return $strLeft;
        }
        if ($strRight = $this->coerceString($right)) {
            if ($left[0] === Type::T_STRING) {
                $left[1] = '';
            }
            array_unshift($strRight[2], $left);
            return $strRight;
        }
    }
Compiler