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

Function ref

src/extraction/languages/erlang.ts:230–240  ·  view source on GitHub ↗
(nameNode: SyntaxNode, kind: 'references' | 'imports')

Source from the content-addressed store, hash-verified

228 const props = node.namedChildren[2];
229 if (!parentId || props?.type !== 'list') return true;
230 const ref = (nameNode: SyntaxNode, kind: 'references' | 'imports'): void => {
231 const name = atomText(nameNode, ctx.source);
232 if (!name) return;
233 ctx.addUnresolvedReference({
234 fromNodeId: parentId,
235 referenceName: name,
236 referenceKind: kind,
237 line: nameNode.startPosition.row + 1,
238 column: nameNode.startPosition.column,
239 });
240 };
241 for (const prop of props.namedChildren) {
242 if (prop.type !== 'tuple' || prop.namedChildren.length < 2) continue;
243 const key = prop.namedChildren[0];

Callers 1

handleAppResourceTupleFunction · 0.70

Calls 2

atomTextFunction · 0.85

Tested by

no test coverage detected