MCPcopy Create free account
hub / github.com/adobe/react-spectrum / walk

Function walk

packages/dev/s2-docs/scripts/generateAgentSkills.mjs:314–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312 };
313
314 const walk = node => {
315 if (!node || !Array.isArray(node.children)) {
316 return;
317 }
318
319 for (const child of node.children) {
320 if (child.type === 'listItem') {
321 const entry = extractEntry(child);
322 if (entry) {
323 entries.push(entry);
324 }
325 }
326 walk(child);
327 }
328 };
329
330 walk(tree);
331 return entries;

Callers 3

parseLlmsTxtFunction · 0.70
collectSkillFilesFunction · 0.70
validateSkillLinksFunction · 0.70

Calls 2

extractEntryFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected