Leafo\ScssPhp\Compiler::handleImportLoop PHP Méthode

handleImportLoop() protected méthode

Handle import loop
protected handleImportLoop ( string $name )
$name string
    protected function handleImportLoop($name)
    {
        for ($env = $this->env; $env; $env = $env->parent) {
            $file = $this->sourceNames[$env->block->sourceIndex];
            if (realpath($file) === $name) {
                $this->throwError('An @import loop has been found: %s imports %s', $file, basename($file));
                break;
            }
        }
    }
Compiler