Leafo\ScssPhp\Compiler::makeOutputBlock PHP Method

makeOutputBlock() protected method

Make output block
protected makeOutputBlock ( string $type, array $selectors = null ) : Leafo\ScssPhp\Formatter\OutputBlock
$type string
$selectors array
return Leafo\ScssPhp\Formatter\OutputBlock
    protected function makeOutputBlock($type, $selectors = null)
    {
        $out = new OutputBlock();
        $out->type = $type;
        $out->lines = [];
        $out->children = [];
        $out->parent = $this->scope;
        $out->selectors = $selectors;
        $out->depth = $this->env->depth;
        return $out;
    }
Compiler