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

Function gatherPossibleChildren

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

Source from the content-addressed store, hash-verified

31288 }
31289 ts.forEachChildRecursively = forEachChildRecursively;
31290 function gatherPossibleChildren(node) {
31291 var children = [];
31292 forEachChild(node, addWorkItem, addWorkItem); // By using a stack above and `unshift` here, we emulate a depth-first preorder traversal
31293 return children;
31294 function addWorkItem(n) {
31295 children.unshift(n);
31296 }
31297 }
31298 function setExternalModuleIndicator(sourceFile) {
31299 sourceFile.externalModuleIndicator = isFileProbablyExternalModule(sourceFile);
31300 }

Callers 1

forEachChildRecursivelyFunction · 0.85

Calls 1

forEachChildFunction · 0.85

Tested by

no test coverage detected