* @var ?string absolute path to currently parsed file, when in parse phase.
* TODO: Does the Context->getFile() make keeping this redundant?
*/
private$current_parsed_file;
/**
* @var array<string,list<Closure(CodeBase):void>>
*/
private$undo_operations_for_path=[];
/**
* @var array<string,?string> Maps file paths to the modification dates and file size of the paths. - On ext4, milliseconds are available, but php APIs all return seconds.
*/
private$file_modification_state=[];
publicfunction__construct()
{
}
/**
* @return list<string> - The list of files which are successfully parsed.
* This changes whenever the file list is reloaded from disk.
* This also includes files which don't declare classes or functions or globals,
* because those files use classes/functions/constants.
*
* (This is the list prior to any analysis exclusion or whitelisting steps)
* @param ?(string[]) $reanalyze_files files to re-parse before re-running analysis.
* This fixes #1921
* @return list<string> - Subset of $new_file_list which changed on disk and has to be parsed again. Automatically unparses the old versions of files which were modified.