MCPcopy Create free account
hub / github.com/nodejs/node / doWithHierarchyFacts

Function doWithHierarchyFacts

test/fixtures/snapshot/typescript.js:96582–96590  ·  view source on GitHub ↗
(cb, value, excludeFacts, includeFacts)

Source from the content-addressed store, hash-verified

96580 return node;
96581 }
96582 function doWithHierarchyFacts(cb, value, excludeFacts, includeFacts) {
96583 if (affectsSubtree(excludeFacts, includeFacts)) {
96584 var ancestorFacts = enterSubtree(excludeFacts, includeFacts);
96585 var result = cb(value);
96586 exitSubtree(ancestorFacts);
96587 return result;
96588 }
96589 return cb(value);
96590 }
96591 function visitDefault(node) {
96592 return ts.visitEachChild(node, visitor, context);
96593 }

Callers 1

visitorWorkerFunction · 0.85

Calls 4

affectsSubtreeFunction · 0.85
enterSubtreeFunction · 0.85
exitSubtreeFunction · 0.85
cbFunction · 0.50

Tested by

no test coverage detected