MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / declares

Function declares

src/extraction/function-ref.ts:961–966  ·  view source on GitHub ↗
(n: SyntaxNode)

Source from the content-addressed store, hash-verified

959 if (names.has(name)) out.add(`${unit.id}|${name}`);
960 };
961 const declares = (n: SyntaxNode): boolean => {
962 for (const c of childrenOf(n)) {
963 if (c && !c.isNamed && c.type === ':=') return true;
964 }
965 return false;
966 };
967 const stack: SyntaxNode[] = [unit];
968 while (stack.length > 0) {
969 const n = stack.pop()!;

Callers 2

goLocalBindingsFunction · 0.70
go_local_bindingsFunction · 0.50

Calls 1

childrenOfFunction · 0.90

Tested by

no test coverage detected