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

Function createCompilerDiagnostic

test/fixtures/snapshot/typescript.js:20066–20081  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

20064 }
20065 ts.formatMessage = formatMessage;
20066 function createCompilerDiagnostic(message) {
20067 var text = getLocaleSpecificMessage(message);
20068 if (arguments.length > 1) {
20069 text = formatStringFromArgs(text, arguments, 1);
20070 }
20071 return {
20072 file: undefined,
20073 start: undefined,
20074 length: undefined,
20075 messageText: text,
20076 category: message.category,
20077 code: message.code,
20078 reportsUnnecessary: message.reportsUnnecessary,
20079 reportsDeprecated: message.reportsDeprecated
20080 };
20081 }
20082 ts.createCompilerDiagnostic = createCompilerDiagnostic;
20083 function createCompilerDiagnosticFromMessageChain(chain, relatedInformation) {
20084 return {

Callers 1

writeFileFunction · 0.85

Calls 2

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…