PHPSA\Definition\FileParser::__construct PHP Method

__construct() public method

public __construct ( PhpParser\Parser $parser, Compiler $compiler )
$parser PhpParser\Parser
$compiler PHPSA\Compiler
    public function __construct(\PhpParser\Parser $parser, Compiler $compiler)
    {
        $this->nodeTraverser = new \PhpParser\NodeTraverser();
        $this->nodeTraverser->addVisitor(new \PhpParser\NodeVisitor\NameResolver());
        $this->parser = $parser;
        $this->compiler = $compiler;
    }