Leafo\ScssPhp\Compiler::parserFactory PHP Method

parserFactory() protected method

Instantiate parser
protected parserFactory ( string $path ) : Parser
$path string
return Parser
    protected function parserFactory($path)
    {
        $parser = new Parser($path, count($this->sourceNames), $this->encoding);
        $this->sourceNames[] = $path;
        $this->addParsedFile($path);
        return $parser;
    }
Compiler