MCPcopy Create free account
hub / github.com/bytebase/bytebase / walk

Function walk

frontend/src/react/components/sql-editor/SheetTree.test.tsx:80–84  ·  view source on GitHub ↗
(n: WorksheetFolderNode)

Source from the content-addressed store, hash-verified

78 ) => {
79 const results: unknown[] = [];
80 const walk = (n: WorksheetFolderNode) => {
81 const r = cb(n);
82 if (r !== undefined) results.push(r);
83 for (const c of n.children) walk(c);
84 };
85 walk(node);
86 return results;
87 },

Callers 1

SheetTree.test.tsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected