/opt/cpanel/ea-wappspector/vendor/rector/rector/src/PhpParser/Parser
Edit: /opt/cpanel/ea-wappspector/vendor/rector/rector/src/PhpParser/Parser/RectorParser.php (1156B)
lexer = $lexer;
$this->parser = $parser;
}
/**
* @api used by rector-symfony
*
* @return Stmt[]
*/
public function parseFile(string $filePath) : array
{
return $this->parser->parseFile($filePath);
}
/**
* @return Stmt[]
*/
public function parseString(string $fileContent) : array
{
return $this->parser->parseString($fileContent);
}
public function parseFileContentToStmtsAndTokens(string $fileContent) : StmtsAndTokens
{
$stmts = $this->parser->parseString($fileContent);
$tokens = $this->lexer->getTokens();
return new StmtsAndTokens($stmts, $tokens);
}
}