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;
}