| 363 | } |
| 364 | |
| 365 | bool ScriptFileUtil::DetectScriptFileChanged(const Path& path) { |
| 366 | ScriptFileMap& file_map = ScriptFileCache::Instance()->files; |
| 367 | ScriptFileMap::iterator iter; |
| 368 | iter = file_map.find(path.GetFullPathStr()); |
| 369 | if (iter == file_map.end()) { |
| 370 | return true; |
| 371 | } else { |
| 372 | ScriptFile& file = (*iter).second; |
| 373 | return GetLatestModification(path) > file.latest_modification; |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | int64_t ScriptFileUtil::GetLatestModification(const Path& path) { |
| 378 | PROFILER_ZONE(g_profiler_ctx, "GetLatestModification"); |
nothing calls this directly
no test coverage detected