Leafo\ScssPhp\Compiler::pushExtends PHP Method

pushExtends() protected method

Push extends
protected pushExtends ( array $target, array $origin, stdClass $block )
$target array
$origin array
$block stdClass
    protected function pushExtends($target, $origin, $block)
    {
        if ($this->isSelfExtend($target, $origin)) {
            return;
        }
        $i = count($this->extends);
        $this->extends[] = [$target, $origin, $block];
        foreach ($target as $part) {
            if (isset($this->extendsMap[$part])) {
                $this->extendsMap[$part][] = $i;
            } else {
                $this->extendsMap[$part] = [$i];
            }
        }
    }
Compiler