MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / walk

Function walk

packages/ast/walk/index.js:1–6  ·  view source on GitHub ↗
(root, callback)

Source from the content-addressed store, hash-verified

1const walk = (root, callback) => {
2 callback(root);
3 if (root.children) {
4 root.children.forEach((node) => walk(node, callback));
5 }
6};
7
8module.exports = walk;

Callers 8

getUserMentionsFunction · 0.90
getTitleFunction · 0.90
stringifyFunction · 0.85
postprocessFunction · 0.85
findByTypeFunction · 0.85
preprocessFunction · 0.85
previewableFunction · 0.85
index.spec.jsFile · 0.85

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected