Leafo\ScssPhp\Compiler::compileNestedBlock PHP Method

compileNestedBlock() protected method

Compile nested block
protected compileNestedBlock ( Leafo\ScssPhp\Block $block, array $selectors )
$block Leafo\ScssPhp\Block
$selectors array
    protected function compileNestedBlock(Block $block, $selectors)
    {
        $this->pushEnv($block);
        $this->scope = $this->makeOutputBlock($block->type, $selectors);
        $this->scope->parent->children[] = $this->scope;
        $this->compileChildrenNoReturn($block->children, $this->scope);
        $this->scope = $this->scope->parent;
        $this->popEnv();
    }
Compiler