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

Function bind

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

Source from the content-addressed store, hash-verified

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

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