MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / getChildren

Function getChildren

packages/web/src/features/search/parser.ts:436–444  ·  view source on GitHub ↗
(node: SyntaxNode)

Source from the content-addressed store, hash-verified

434}
435
436const getChildren = (node: SyntaxNode): SyntaxNode[] => {
437 const children: SyntaxNode[] = [];
438 let child = node.firstChild;
439 while (child) {
440 children.push(child);
441 child = child.nextSibling;
442 }
443 return children;
444}

Callers 1

transformNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected