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

Function declares

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

Source from the content-addressed store, hash-verified

963 if (names.has(name)) out.add(`${unit.id}|${name}`);
964 };
965 const declares = (n: SyntaxNode): boolean => {
966 for (const c of childrenOf(n)) {
967 if (c && !c.isNamed && c.type === ':=') return true;
968 }
969 return false;
970 };
971 const stack: SyntaxNode[] = [unit];
972 while (stack.length > 0) {
973 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