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

Function checkNodeDeferred

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

Source from the content-addressed store, hash-verified

85859 // determining the type of foo would cause foo to be given type any because of the recursive reference.
85860 // Delaying the type check of the body ensures foo has been assigned a type.
85861 function checkNodeDeferred(node) {
85862 var enclosingFile = ts.getSourceFileOfNode(node);
85863 var links = getNodeLinks(enclosingFile);
85864 if (!(links.flags & 1 /* NodeCheckFlags.TypeChecked */)) {
85865 links.deferredNodes || (links.deferredNodes = new ts.Set());
85866 links.deferredNodes.add(node);
85867 }
85868 }
85869 function checkDeferredNodes(context) {
85870 var links = getNodeLinks(context);
85871 if (links.deferredNodes) {

Callers 7

checkObjectLiteralFunction · 0.85
checkJsxElementFunction · 0.85
checkTypeParameterFunction · 0.85
checkClassExpressionFunction · 0.85

Calls 2

getNodeLinksFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…