* A context with the file name for $file_contents and the scope after analyzing $node.
*
* @param string $file_contents the unmodified file contents @phan-unused-param
* @param Node $node the node @phan-unused-param
* @override
* @throws Error if a process fails to shut down
*/
publicfunctionafterAnalyzeFile(
CodeBase$code_base,
Context$context,
string$file_contents,
Node$node
):void{
$file=$context->getFile();
if(!isset(self::$file_set_to_analyze[$file])){
// token_get_all is noticeably slow when there are a lot of files, so we check for the existence of echo statements in the parsed AST as a heuristic to avoid calling token_get_all.