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

Function createFileDiagnosticFromMessageChain

test/fixtures/snapshot/typescript.js:15298–15309  ·  view source on GitHub ↗
(file, start, length, messageChain, relatedInformation)

Source from the content-addressed store, hash-verified

15296 }
15297 }
15298 function createFileDiagnosticFromMessageChain(file, start, length, messageChain, relatedInformation) {
15299 assertDiagnosticLocation(file, start, length);
15300 return {
15301 file: file,
15302 start: start,
15303 length: length,
15304 code: messageChain.code,
15305 category: messageChain.category,
15306 messageText: messageChain.next ? messageChain : messageChain.messageText,
15307 relatedInformation: relatedInformation
15308 };
15309 }
15310 ts.createFileDiagnosticFromMessageChain = createFileDiagnosticFromMessageChain;
15311 function createDiagnosticForFileFromMessageChain(sourceFile, messageChain, relatedInformation) {
15312 return {

Calls 1

assertDiagnosticLocationFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…