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

Function shouldVisitNode

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

Source from the content-addressed store, hash-verified

98629 || ts.isBlock(node));
98630 }
98631 function shouldVisitNode(node) {
98632 return (node.transformFlags & 1024 /* TransformFlags.ContainsES2015 */) !== 0
98633 || convertedLoopState !== undefined
98634 || (hierarchyFacts & 8192 /* HierarchyFacts.ConstructorWithCapturedSuper */ && isOrMayContainReturnCompletion(node))
98635 || (ts.isIterationStatement(node, /*lookInLabeledStatements*/ false) && shouldConvertIterationStatement(node))
98636 || (ts.getEmitFlags(node) & 33554432 /* EmitFlags.TypeScriptClassWrapper */) !== 0;
98637 }
98638 function visitor(node) {
98639 return shouldVisitNode(node) ? visitorWorker(node, /*expressionResultIsUnused*/ false) : node;
98640 }

Callers 3

visitorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…