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

Function createDiagnosticForNodeInSourceFile

test/fixtures/snapshot/typescript.js:15279–15282  ·  view source on GitHub ↗
(sourceFile, node, message, arg0, arg1, arg2, arg3)

Source from the content-addressed store, hash-verified

15277 }
15278 ts.createDiagnosticForNodeArray = createDiagnosticForNodeArray;
15279 function createDiagnosticForNodeInSourceFile(sourceFile, node, message, arg0, arg1, arg2, arg3) {
15280 var span = getErrorSpanForNode(sourceFile, node);
15281 return createFileDiagnostic(sourceFile, span.start, span.length, message, arg0, arg1, arg2, arg3);
15282 }
15283 ts.createDiagnosticForNodeInSourceFile = createDiagnosticForNodeInSourceFile;
15284 function createDiagnosticForNodeFromMessageChain(node, messageChain, relatedInformation) {
15285 var sourceFile = getSourceFileOfNode(node);

Callers 1

createDiagnosticForNodeFunction · 0.85

Calls 2

getErrorSpanForNodeFunction · 0.85
createFileDiagnosticFunction · 0.85

Tested by

no test coverage detected