MCPcopy Create free account
hub / github.com/nodejs/node / onReleaseParsedCommandLine

Function onReleaseParsedCommandLine

test/fixtures/snapshot/typescript.js:123831–123842  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

123829 return parsedCommandLine;
123830 }
123831 function onReleaseParsedCommandLine(fileName) {
123832 var _a;
123833 var path = toPath(fileName);
123834 var config = parsedConfigs === null || parsedConfigs === void 0 ? void 0 : parsedConfigs.get(path);
123835 if (!config)
123836 return;
123837 parsedConfigs.delete(path);
123838 if (config.watchedDirectories)
123839 ts.clearMap(config.watchedDirectories, ts.closeFileWatcherOf);
123840 (_a = config.watcher) === null || _a === void 0 ? void 0 : _a.close();
123841 ts.clearSharedExtendedConfigFileWatcher(path, sharedExtendedConfigFileWatchers);
123842 }
123843 function watchFilePath(path, file, callback, pollingInterval, options, watchType) {
123844 return watchFile(file, function (fileName, eventKind) { return callback(fileName, eventKind, path); }, pollingInterval, options, watchType);
123845 }

Callers

nothing calls this directly

Calls 6

toPathFunction · 0.85
onReleaseOldSourceFileFunction · 0.85
getMethod · 0.65
deleteMethod · 0.65
closeMethod · 0.65
callMethod · 0.45

Tested by

no test coverage detected