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

Function setSourceFile

test/fixtures/snapshot/typescript.js:110957–110964  ·  view source on GitHub ↗
(sourceFile)

Source from the content-addressed store, hash-verified

110955 pipelineEmit(hint, node, /*parenthesizerRule*/ undefined);
110956 }
110957 function setSourceFile(sourceFile) {
110958 currentSourceFile = sourceFile;
110959 currentLineMap = undefined;
110960 detachedCommentsInfo = undefined;
110961 if (sourceFile) {
110962 setSourceMapSource(sourceFile);
110963 }
110964 }
110965 function setWriter(_writer, _sourceMapGenerator) {
110966 if (_writer && printerOptions.omitTrailingSemicolon) {
110967 _writer = ts.getTrailingSemicolonDeferringWriter(_writer);

Callers 4

writeListFunction · 0.85
printFunction · 0.85
emitPrologueDirectivesFunction · 0.85

Calls 1

setSourceMapSourceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…