HippoPHP\Hippo\CheckContext::getSyntaxTree PHP Method

getSyntaxTree() public method

public getSyntaxTree ( ) : mixed
return mixed
    public function getSyntaxTree()
    {
        return $this->lazyFactory->get(self::CONTEXT_AST, function () {
            $parser = new Parser(new Emulative());
            $stmts = $parser->parse($this->file->getSource());
            return $stmts;
        });
    }