Leafo\ScssPhp\Compiler::compileChildrenNoReturn PHP Method

compileChildrenNoReturn() protected method

Compile children and throw exception if unexpected @return
protected compileChildrenNoReturn ( array $stms, Leafo\ScssPhp\Formatter\OutputBlock $out )
$stms array
$out Leafo\ScssPhp\Formatter\OutputBlock
    protected function compileChildrenNoReturn($stms, OutputBlock $out)
    {
        foreach ($stms as $stm) {
            $ret = $this->compileChild($stm, $out);
            if (isset($ret)) {
                $this->throwError('@return may only be used within a function');
                return;
            }
        }
    }
Compiler