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

Function nodeIsMissing

test/fixtures/snapshot/typescript.js:14610–14615  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

14608 // However, this node will be 'missing' in the sense that no actual source-code/tokens are
14609 // contained within it.
14610 function nodeIsMissing(node) {
14611 if (node === undefined) {
14612 return true;
14613 }
14614 return node.pos === node.end && node.pos >= 0 && node.kind !== 1 /* SyntaxKind.EndOfFileToken */;
14615 }
14616 ts.nodeIsMissing = nodeIsMissing;
14617 function nodeIsPresent(node) {
14618 return !nodeIsMissing(node);

Callers 5

nodeIsPresentFunction · 0.85
getTokenPosOfNodeFunction · 0.85
getErrorSpanForNodeFunction · 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…