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

Function declares

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

Source from the content-addressed store, hash-verified

965 if (names.has(name)) out.add(`${unit.id}|${name}`);
966 };
967 const declares = (n: SyntaxNode): boolean => {
968 for (let i = 0; i < n.childCount; i++) {
969 const c = n.child(i);
970 if (c && !c.isNamed && c.type === ':=') return true;
971 }
972 return false;
973 };
974 const stack: SyntaxNode[] = [unit];
975 while (stack.length > 0) {
976 const n = stack.pop()!;

Callers 2

goLocalBindingsFunction · 0.70
go_local_bindingsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected