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

Function createDiagnosticForNodeFromMessageChain

test/fixtures/snapshot/typescript.js:15284–15288  ·  view source on GitHub ↗
(node, messageChain, relatedInformation)

Source from the content-addressed store, hash-verified

15282 }
15283 ts.createDiagnosticForNodeInSourceFile = createDiagnosticForNodeInSourceFile;
15284 function createDiagnosticForNodeFromMessageChain(node, messageChain, relatedInformation) {
15285 var sourceFile = getSourceFileOfNode(node);
15286 var span = getErrorSpanForNode(sourceFile, node);
15287 return createFileDiagnosticFromMessageChain(sourceFile, span.start, span.length, messageChain, relatedInformation);
15288 }
15289 ts.createDiagnosticForNodeFromMessageChain = createDiagnosticForNodeFromMessageChain;
15290 function assertDiagnosticLocation(file, start, length) {
15291 ts.Debug.assertGreaterThanOrEqual(start, 0);

Callers

nothing calls this directly

Calls 3

getSourceFileOfNodeFunction · 0.85
getErrorSpanForNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…