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

Function formatStringFromArgs

test/fixtures/snapshot/typescript.js:19953–19956  ·  view source on GitHub ↗
(text, args, baseIndex)

Source from the content-addressed store, hash-verified

19951 }
19952 ts.setObjectAllocator = setObjectAllocator;
19953 function formatStringFromArgs(text, args, baseIndex) {
19954 if (baseIndex === void 0) { baseIndex = 0; }
19955 return text.replace(/{(\d+)}/g, function (_match, index) { return "" + ts.Debug.checkDefined(args[+index + baseIndex]); });
19956 }
19957 ts.formatStringFromArgs = formatStringFromArgs;
19958 var localizedDiagnosticMessages;
19959 /* @internal */

Callers 5

createDetachedDiagnosticFunction · 0.85
createFileDiagnosticFunction · 0.85
formatMessageFunction · 0.85
createCompilerDiagnosticFunction · 0.85
chainDiagnosticMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…