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

Function bind

src/extraction/function-ref.ts:960–964  ·  view source on GitHub ↗
(id: SyntaxNode | null | undefined)

Source from the content-addressed store, hash-verified

958 const out = new Set<string>();
959 for (const unit of units) {
960 const bind = (id: SyntaxNode | null | undefined): void => {
961 if (id?.type !== 'identifier') return;
962 const name = getNodeText(id, source);
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;

Callers 2

goLocalBindingsFunction · 0.70
go_local_bindingsFunction · 0.50

Calls 3

getNodeTextFunction · 0.90
hasMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected