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

Function visitNodes

test/fixtures/snapshot/typescript.js:30665–30678  ·  view source on GitHub ↗
(cbNode, cbNodes, nodes)

Source from the content-addressed store, hash-verified

30663 return node && cbNode(node);
30664 }
30665 function visitNodes(cbNode, cbNodes, nodes) {
30666 if (nodes) {
30667 if (cbNodes) {
30668 return cbNodes(nodes);
30669 }
30670 for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) {
30671 var node = nodes_1[_i];
30672 var result = cbNode(node);
30673 if (result) {
30674 return result;
30675 }
30676 }
30677 }
30678 }
30679 /*@internal*/
30680 function isJSDocLikeText(text, start) {
30681 return text.charCodeAt(start + 1) === 42 /* CharacterCodes.asterisk */ &&

Callers 2

forEachChildFunction · 0.85
visitEachChildFunction · 0.85

Calls 3

visitorFunction · 0.70
sliceMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected