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

Function declares

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

Source from the content-addressed store, hash-verified

942 if (names.has(name)) out.add(`${unit.id}|${name}`);
943 };
944 const declares = (n: SyntaxNode): boolean => {
945 for (let i = 0; i < n.childCount; i++) {
946 const c = n.child(i);
947 if (c && !c.isNamed && c.type === ':=') return true;
948 }
949 return false;
950 };
951 const stack: SyntaxNode[] = [unit];
952 while (stack.length > 0) {
953 const n = stack.pop()!;

Callers 2

goLocalBindingsFunction · 0.70
go_local_bindingsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected