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

Function assertDiagnosticLocation

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

Source from the content-addressed store, hash-verified

15288 }
15289 ts.createDiagnosticForNodeFromMessageChain = createDiagnosticForNodeFromMessageChain;
15290 function assertDiagnosticLocation(file, start, length) {
15291 ts.Debug.assertGreaterThanOrEqual(start, 0);
15292 ts.Debug.assertGreaterThanOrEqual(length, 0);
15293 if (file) {
15294 ts.Debug.assertLessThanOrEqual(start, file.text.length);
15295 ts.Debug.assertLessThanOrEqual(start + length, file.text.length);
15296 }
15297 }
15298 function createFileDiagnosticFromMessageChain(file, start, length, messageChain, relatedInformation) {
15299 assertDiagnosticLocation(file, start, length);
15300 return {

Callers 3

createDetachedDiagnosticFunction · 0.85
createFileDiagnosticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…