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

Function createFileDiagnostic

test/fixtures/snapshot/typescript.js:20040–20056  ·  view source on GitHub ↗
(file, start, length, message)

Source from the content-addressed store, hash-verified

20038 }
20039 ts.attachFileToDiagnostics = attachFileToDiagnostics;
20040 function createFileDiagnostic(file, start, length, message) {
20041 assertDiagnosticLocation(file, start, length);
20042 var text = getLocaleSpecificMessage(message);
20043 if (arguments.length > 4) {
20044 text = formatStringFromArgs(text, arguments, 4);
20045 }
20046 return {
20047 file: file,
20048 start: start,
20049 length: length,
20050 messageText: text,
20051 category: message.category,
20052 code: message.code,
20053 reportsUnnecessary: message.reportsUnnecessary,
20054 reportsDeprecated: message.reportsDeprecated
20055 };
20056 }
20057 ts.createFileDiagnostic = createFileDiagnostic;
20058 function formatMessage(_dummy, message) {
20059 var text = getLocaleSpecificMessage(message);

Calls 3

assertDiagnosticLocationFunction · 0.85
getLocaleSpecificMessageFunction · 0.85
formatStringFromArgsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…