MCPcopy Index your code
hub / github.com/nodejs/node / onWatchedFileStat

Function onWatchedFileStat

test/fixtures/snapshot/typescript.js:6475–6484  ·  view source on GitHub ↗
(watchedFile, modifiedTime)

Source from the content-addressed store, hash-verified

6473 */
6474 /*@internal*/
6475 function onWatchedFileStat(watchedFile, modifiedTime) {
6476 var oldTime = watchedFile.mtime.getTime();
6477 var newTime = modifiedTime.getTime();
6478 if (oldTime !== newTime) {
6479 watchedFile.mtime = modifiedTime;
6480 watchedFile.callback(watchedFile.fileName, getFileWatcherEventKind(oldTime, newTime));
6481 return true;
6482 }
6483 return false;
6484 }
6485 ts.onWatchedFileStat = onWatchedFileStat;
6486 /*@internal*/
6487 function getFileWatcherEventKind(oldTime, newTime) {

Callers 1

pollWatchedFileQueueFunction · 0.85

Calls 2

getFileWatcherEventKindFunction · 0.85
callbackMethod · 0.80

Tested by

no test coverage detected