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

Function setSourceContent

test/fixtures/snapshot/typescript.js:90040–90051  ·  view source on GitHub ↗
(sourceIndex, content)

Source from the content-addressed store, hash-verified

90038 }
90039 /* eslint-disable boolean-trivia, no-null/no-null */
90040 function setSourceContent(sourceIndex, content) {
90041 enter();
90042 if (content !== null) {
90043 if (!sourcesContent)
90044 sourcesContent = [];
90045 while (sourcesContent.length < sourceIndex) {
90046 sourcesContent.push(null);
90047 }
90048 sourcesContent[sourceIndex] = content;
90049 }
90050 exit();
90051 }
90052 /* eslint-enable boolean-trivia, no-null/no-null */
90053 function addName(name) {
90054 enter();

Callers 1

appendSourceMapFunction · 0.85

Calls 3

enterFunction · 0.70
exitFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…